@memberjunction/core-entities 5.23.0 → 5.24.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/custom/MJUserViewEntityExtended.d.ts +4 -314
- package/dist/custom/MJUserViewEntityExtended.d.ts.map +1 -1
- package/dist/custom/MJUserViewEntityExtended.js +5 -5
- package/dist/custom/MJUserViewEntityExtended.js.map +1 -1
- package/dist/engines/knowledgeHubMetadata.d.ts +1 -6
- package/dist/engines/knowledgeHubMetadata.d.ts.map +1 -1
- package/dist/engines/knowledgeHubMetadata.js +0 -17
- package/dist/engines/knowledgeHubMetadata.js.map +1 -1
- package/dist/generated/entity_subclasses.d.ts +2189 -53
- package/dist/generated/entity_subclasses.d.ts.map +1 -1
- package/dist/generated/entity_subclasses.js +2641 -238
- package/dist/generated/entity_subclasses.js.map +1 -1
- package/package.json +5 -5
|
@@ -5656,6 +5656,56 @@ export declare const MJContentItemAttributeSchema: z.ZodObject<{
|
|
|
5656
5656
|
ContentItem?: string;
|
|
5657
5657
|
}>;
|
|
5658
5658
|
export type MJContentItemAttributeEntityType = z.infer<typeof MJContentItemAttributeSchema>;
|
|
5659
|
+
/**
|
|
5660
|
+
* zod schema definition for the entity MJ: Content Item Duplicates
|
|
5661
|
+
*/
|
|
5662
|
+
export declare const MJContentItemDuplicateSchema: z.ZodObject<{
|
|
5663
|
+
ID: z.ZodString;
|
|
5664
|
+
ContentItemAID: z.ZodString;
|
|
5665
|
+
ContentItemBID: z.ZodString;
|
|
5666
|
+
SimilarityScore: z.ZodNumber;
|
|
5667
|
+
DetectionMethod: z.ZodUnion<[z.ZodLiteral<"Checksum">, z.ZodLiteral<"Title">, z.ZodLiteral<"URL">, z.ZodLiteral<"Vector">]>;
|
|
5668
|
+
Status: z.ZodUnion<[z.ZodLiteral<"Confirmed">, z.ZodLiteral<"Dismissed">, z.ZodLiteral<"Merged">, z.ZodLiteral<"Pending">]>;
|
|
5669
|
+
ResolvedByUserID: z.ZodNullable<z.ZodString>;
|
|
5670
|
+
ResolvedAt: z.ZodNullable<z.ZodDate>;
|
|
5671
|
+
Resolution: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"KeepA">, z.ZodLiteral<"KeepB">, z.ZodLiteral<"MergeBoth">, z.ZodLiteral<"NotDuplicate">]>>;
|
|
5672
|
+
__mj_CreatedAt: z.ZodDate;
|
|
5673
|
+
__mj_UpdatedAt: z.ZodDate;
|
|
5674
|
+
ContentItemA: z.ZodNullable<z.ZodString>;
|
|
5675
|
+
ContentItemB: z.ZodNullable<z.ZodString>;
|
|
5676
|
+
ResolvedByUser: z.ZodNullable<z.ZodString>;
|
|
5677
|
+
}, "strip", z.ZodTypeAny, {
|
|
5678
|
+
ID?: string;
|
|
5679
|
+
__mj_CreatedAt?: Date;
|
|
5680
|
+
__mj_UpdatedAt?: Date;
|
|
5681
|
+
Status?: "Pending" | "Confirmed" | "Dismissed" | "Merged";
|
|
5682
|
+
ContentItemAID?: string;
|
|
5683
|
+
ContentItemBID?: string;
|
|
5684
|
+
SimilarityScore?: number;
|
|
5685
|
+
DetectionMethod?: "Vector" | "URL" | "Title" | "Checksum";
|
|
5686
|
+
ResolvedByUserID?: string;
|
|
5687
|
+
ResolvedAt?: Date;
|
|
5688
|
+
Resolution?: "KeepA" | "KeepB" | "MergeBoth" | "NotDuplicate";
|
|
5689
|
+
ContentItemA?: string;
|
|
5690
|
+
ContentItemB?: string;
|
|
5691
|
+
ResolvedByUser?: string;
|
|
5692
|
+
}, {
|
|
5693
|
+
ID?: string;
|
|
5694
|
+
__mj_CreatedAt?: Date;
|
|
5695
|
+
__mj_UpdatedAt?: Date;
|
|
5696
|
+
Status?: "Pending" | "Confirmed" | "Dismissed" | "Merged";
|
|
5697
|
+
ContentItemAID?: string;
|
|
5698
|
+
ContentItemBID?: string;
|
|
5699
|
+
SimilarityScore?: number;
|
|
5700
|
+
DetectionMethod?: "Vector" | "URL" | "Title" | "Checksum";
|
|
5701
|
+
ResolvedByUserID?: string;
|
|
5702
|
+
ResolvedAt?: Date;
|
|
5703
|
+
Resolution?: "KeepA" | "KeepB" | "MergeBoth" | "NotDuplicate";
|
|
5704
|
+
ContentItemA?: string;
|
|
5705
|
+
ContentItemB?: string;
|
|
5706
|
+
ResolvedByUser?: string;
|
|
5707
|
+
}>;
|
|
5708
|
+
export type MJContentItemDuplicateEntityType = z.infer<typeof MJContentItemDuplicateSchema>;
|
|
5659
5709
|
/**
|
|
5660
5710
|
* zod schema definition for the entity MJ: Content Item Tags
|
|
5661
5711
|
*/
|
|
@@ -5666,7 +5716,9 @@ export declare const MJContentItemTagSchema: z.ZodObject<{
|
|
|
5666
5716
|
__mj_CreatedAt: z.ZodDate;
|
|
5667
5717
|
__mj_UpdatedAt: z.ZodDate;
|
|
5668
5718
|
Weight: z.ZodNumber;
|
|
5719
|
+
TagID: z.ZodNullable<z.ZodString>;
|
|
5669
5720
|
Item: z.ZodNullable<z.ZodString>;
|
|
5721
|
+
Tag_Virtual: z.ZodNullable<z.ZodString>;
|
|
5670
5722
|
}, "strip", z.ZodTypeAny, {
|
|
5671
5723
|
ID?: string;
|
|
5672
5724
|
__mj_CreatedAt?: Date;
|
|
@@ -5674,7 +5726,9 @@ export declare const MJContentItemTagSchema: z.ZodObject<{
|
|
|
5674
5726
|
Weight?: number;
|
|
5675
5727
|
ItemID?: string;
|
|
5676
5728
|
Tag?: string;
|
|
5729
|
+
TagID?: string;
|
|
5677
5730
|
Item?: string;
|
|
5731
|
+
Tag_Virtual?: string;
|
|
5678
5732
|
}, {
|
|
5679
5733
|
ID?: string;
|
|
5680
5734
|
__mj_CreatedAt?: Date;
|
|
@@ -5682,7 +5736,9 @@ export declare const MJContentItemTagSchema: z.ZodObject<{
|
|
|
5682
5736
|
Weight?: number;
|
|
5683
5737
|
ItemID?: string;
|
|
5684
5738
|
Tag?: string;
|
|
5739
|
+
TagID?: string;
|
|
5685
5740
|
Item?: string;
|
|
5741
|
+
Tag_Virtual?: string;
|
|
5686
5742
|
}>;
|
|
5687
5743
|
export type MJContentItemTagEntityType = z.infer<typeof MJContentItemTagSchema>;
|
|
5688
5744
|
/**
|
|
@@ -5701,46 +5757,164 @@ export declare const MJContentItemSchema: z.ZodObject<{
|
|
|
5701
5757
|
Text: z.ZodNullable<z.ZodString>;
|
|
5702
5758
|
__mj_CreatedAt: z.ZodDate;
|
|
5703
5759
|
__mj_UpdatedAt: z.ZodDate;
|
|
5760
|
+
EntityRecordDocumentID: z.ZodNullable<z.ZodString>;
|
|
5761
|
+
EmbeddingStatus: z.ZodUnion<[z.ZodLiteral<"Complete">, z.ZodLiteral<"Failed">, z.ZodLiteral<"Pending">, z.ZodLiteral<"Processing">, z.ZodLiteral<"Skipped">]>;
|
|
5762
|
+
LastEmbeddedAt: z.ZodNullable<z.ZodDate>;
|
|
5763
|
+
EmbeddingModelID: z.ZodNullable<z.ZodString>;
|
|
5764
|
+
TaggingStatus: z.ZodUnion<[z.ZodLiteral<"Complete">, z.ZodLiteral<"Failed">, z.ZodLiteral<"Pending">, z.ZodLiteral<"Processing">, z.ZodLiteral<"Skipped">]>;
|
|
5765
|
+
LastTaggedAt: z.ZodNullable<z.ZodDate>;
|
|
5704
5766
|
ContentSource: z.ZodNullable<z.ZodString>;
|
|
5705
5767
|
ContentType: z.ZodString;
|
|
5706
5768
|
ContentSourceType: z.ZodString;
|
|
5707
5769
|
ContentFileType: z.ZodString;
|
|
5770
|
+
EntityRecordDocument: z.ZodNullable<z.ZodString>;
|
|
5771
|
+
EmbeddingModel: z.ZodNullable<z.ZodString>;
|
|
5708
5772
|
}, "strip", z.ZodTypeAny, {
|
|
5709
5773
|
ID?: string;
|
|
5710
5774
|
__mj_CreatedAt?: Date;
|
|
5711
5775
|
__mj_UpdatedAt?: Date;
|
|
5712
5776
|
Name?: string;
|
|
5713
5777
|
Description?: string;
|
|
5778
|
+
EmbeddingModelID?: string;
|
|
5779
|
+
EmbeddingModel?: string;
|
|
5714
5780
|
Text?: string;
|
|
5715
5781
|
ContentType?: string;
|
|
5716
5782
|
URL?: string;
|
|
5783
|
+
Checksum?: string;
|
|
5717
5784
|
ContentSourceID?: string;
|
|
5718
5785
|
ContentTypeID?: string;
|
|
5719
5786
|
ContentSourceTypeID?: string;
|
|
5720
5787
|
ContentFileTypeID?: string;
|
|
5721
|
-
|
|
5788
|
+
EntityRecordDocumentID?: string;
|
|
5789
|
+
EmbeddingStatus?: "Pending" | "Complete" | "Failed" | "Processing" | "Skipped";
|
|
5790
|
+
LastEmbeddedAt?: Date;
|
|
5791
|
+
TaggingStatus?: "Pending" | "Complete" | "Failed" | "Processing" | "Skipped";
|
|
5792
|
+
LastTaggedAt?: Date;
|
|
5722
5793
|
ContentSource?: string;
|
|
5723
5794
|
ContentSourceType?: string;
|
|
5724
5795
|
ContentFileType?: string;
|
|
5796
|
+
EntityRecordDocument?: string;
|
|
5725
5797
|
}, {
|
|
5726
5798
|
ID?: string;
|
|
5727
5799
|
__mj_CreatedAt?: Date;
|
|
5728
5800
|
__mj_UpdatedAt?: Date;
|
|
5729
5801
|
Name?: string;
|
|
5730
5802
|
Description?: string;
|
|
5803
|
+
EmbeddingModelID?: string;
|
|
5804
|
+
EmbeddingModel?: string;
|
|
5731
5805
|
Text?: string;
|
|
5732
5806
|
ContentType?: string;
|
|
5733
5807
|
URL?: string;
|
|
5808
|
+
Checksum?: string;
|
|
5734
5809
|
ContentSourceID?: string;
|
|
5735
5810
|
ContentTypeID?: string;
|
|
5736
5811
|
ContentSourceTypeID?: string;
|
|
5737
5812
|
ContentFileTypeID?: string;
|
|
5738
|
-
|
|
5813
|
+
EntityRecordDocumentID?: string;
|
|
5814
|
+
EmbeddingStatus?: "Pending" | "Complete" | "Failed" | "Processing" | "Skipped";
|
|
5815
|
+
LastEmbeddedAt?: Date;
|
|
5816
|
+
TaggingStatus?: "Pending" | "Complete" | "Failed" | "Processing" | "Skipped";
|
|
5817
|
+
LastTaggedAt?: Date;
|
|
5739
5818
|
ContentSource?: string;
|
|
5740
5819
|
ContentSourceType?: string;
|
|
5741
5820
|
ContentFileType?: string;
|
|
5821
|
+
EntityRecordDocument?: string;
|
|
5742
5822
|
}>;
|
|
5743
5823
|
export type MJContentItemEntityType = z.infer<typeof MJContentItemSchema>;
|
|
5824
|
+
/**
|
|
5825
|
+
* zod schema definition for the entity MJ: Content Process Run Details
|
|
5826
|
+
*/
|
|
5827
|
+
export declare const MJContentProcessRunDetailSchema: z.ZodObject<{
|
|
5828
|
+
ID: z.ZodString;
|
|
5829
|
+
ContentProcessRunID: z.ZodString;
|
|
5830
|
+
ContentSourceID: z.ZodString;
|
|
5831
|
+
ContentSourceTypeID: z.ZodString;
|
|
5832
|
+
Status: z.ZodString;
|
|
5833
|
+
ItemsProcessed: z.ZodNumber;
|
|
5834
|
+
ItemsTagged: z.ZodNumber;
|
|
5835
|
+
ItemsVectorized: z.ZodNumber;
|
|
5836
|
+
TagsCreated: z.ZodNumber;
|
|
5837
|
+
ErrorCount: z.ZodNumber;
|
|
5838
|
+
StartTime: z.ZodNullable<z.ZodDate>;
|
|
5839
|
+
EndTime: z.ZodNullable<z.ZodDate>;
|
|
5840
|
+
TotalTokensUsed: z.ZodNumber;
|
|
5841
|
+
TotalCost: z.ZodNumber;
|
|
5842
|
+
__mj_CreatedAt: z.ZodDate;
|
|
5843
|
+
__mj_UpdatedAt: z.ZodDate;
|
|
5844
|
+
ContentProcessRun: z.ZodNullable<z.ZodString>;
|
|
5845
|
+
ContentSource: z.ZodNullable<z.ZodString>;
|
|
5846
|
+
ContentSourceType: z.ZodString;
|
|
5847
|
+
}, "strip", z.ZodTypeAny, {
|
|
5848
|
+
ID?: string;
|
|
5849
|
+
__mj_CreatedAt?: Date;
|
|
5850
|
+
__mj_UpdatedAt?: Date;
|
|
5851
|
+
Status?: string;
|
|
5852
|
+
TotalTokensUsed?: number;
|
|
5853
|
+
TotalCost?: number;
|
|
5854
|
+
ContentSourceID?: string;
|
|
5855
|
+
ContentSourceTypeID?: string;
|
|
5856
|
+
ContentSource?: string;
|
|
5857
|
+
ContentSourceType?: string;
|
|
5858
|
+
ContentProcessRunID?: string;
|
|
5859
|
+
ItemsProcessed?: number;
|
|
5860
|
+
ItemsTagged?: number;
|
|
5861
|
+
ItemsVectorized?: number;
|
|
5862
|
+
TagsCreated?: number;
|
|
5863
|
+
ErrorCount?: number;
|
|
5864
|
+
StartTime?: Date;
|
|
5865
|
+
EndTime?: Date;
|
|
5866
|
+
ContentProcessRun?: string;
|
|
5867
|
+
}, {
|
|
5868
|
+
ID?: string;
|
|
5869
|
+
__mj_CreatedAt?: Date;
|
|
5870
|
+
__mj_UpdatedAt?: Date;
|
|
5871
|
+
Status?: string;
|
|
5872
|
+
TotalTokensUsed?: number;
|
|
5873
|
+
TotalCost?: number;
|
|
5874
|
+
ContentSourceID?: string;
|
|
5875
|
+
ContentSourceTypeID?: string;
|
|
5876
|
+
ContentSource?: string;
|
|
5877
|
+
ContentSourceType?: string;
|
|
5878
|
+
ContentProcessRunID?: string;
|
|
5879
|
+
ItemsProcessed?: number;
|
|
5880
|
+
ItemsTagged?: number;
|
|
5881
|
+
ItemsVectorized?: number;
|
|
5882
|
+
TagsCreated?: number;
|
|
5883
|
+
ErrorCount?: number;
|
|
5884
|
+
StartTime?: Date;
|
|
5885
|
+
EndTime?: Date;
|
|
5886
|
+
ContentProcessRun?: string;
|
|
5887
|
+
}>;
|
|
5888
|
+
export type MJContentProcessRunDetailEntityType = z.infer<typeof MJContentProcessRunDetailSchema>;
|
|
5889
|
+
/**
|
|
5890
|
+
* zod schema definition for the entity MJ: Content Process Run Prompt Runs
|
|
5891
|
+
*/
|
|
5892
|
+
export declare const MJContentProcessRunPromptRunSchema: z.ZodObject<{
|
|
5893
|
+
ID: z.ZodString;
|
|
5894
|
+
ContentProcessRunDetailID: z.ZodString;
|
|
5895
|
+
AIPromptRunID: z.ZodString;
|
|
5896
|
+
RunType: z.ZodUnion<[z.ZodLiteral<"Embed">, z.ZodLiteral<"Tag">]>;
|
|
5897
|
+
__mj_CreatedAt: z.ZodDate;
|
|
5898
|
+
__mj_UpdatedAt: z.ZodDate;
|
|
5899
|
+
AIPromptRun: z.ZodNullable<z.ZodString>;
|
|
5900
|
+
}, "strip", z.ZodTypeAny, {
|
|
5901
|
+
ID?: string;
|
|
5902
|
+
__mj_CreatedAt?: Date;
|
|
5903
|
+
__mj_UpdatedAt?: Date;
|
|
5904
|
+
RunType?: "Tag" | "Embed";
|
|
5905
|
+
ContentProcessRunDetailID?: string;
|
|
5906
|
+
AIPromptRunID?: string;
|
|
5907
|
+
AIPromptRun?: string;
|
|
5908
|
+
}, {
|
|
5909
|
+
ID?: string;
|
|
5910
|
+
__mj_CreatedAt?: Date;
|
|
5911
|
+
__mj_UpdatedAt?: Date;
|
|
5912
|
+
RunType?: "Tag" | "Embed";
|
|
5913
|
+
ContentProcessRunDetailID?: string;
|
|
5914
|
+
AIPromptRunID?: string;
|
|
5915
|
+
AIPromptRun?: string;
|
|
5916
|
+
}>;
|
|
5917
|
+
export type MJContentProcessRunPromptRunEntityType = z.infer<typeof MJContentProcessRunPromptRunSchema>;
|
|
5744
5918
|
/**
|
|
5745
5919
|
* zod schema definition for the entity MJ: Content Process Runs
|
|
5746
5920
|
*/
|
|
@@ -5753,27 +5927,54 @@ export declare const MJContentProcessRunSchema: z.ZodObject<{
|
|
|
5753
5927
|
ProcessedItems: z.ZodNullable<z.ZodNumber>;
|
|
5754
5928
|
__mj_CreatedAt: z.ZodDate;
|
|
5755
5929
|
__mj_UpdatedAt: z.ZodDate;
|
|
5930
|
+
StartedByUserID: z.ZodNullable<z.ZodString>;
|
|
5931
|
+
TotalItemCount: z.ZodNullable<z.ZodNumber>;
|
|
5932
|
+
LastProcessedOffset: z.ZodNullable<z.ZodNumber>;
|
|
5933
|
+
BatchSize: z.ZodNullable<z.ZodNumber>;
|
|
5934
|
+
ErrorCount: z.ZodNullable<z.ZodNumber>;
|
|
5935
|
+
ErrorMessage: z.ZodNullable<z.ZodString>;
|
|
5936
|
+
CancellationRequested: z.ZodBoolean;
|
|
5937
|
+
Configuration: z.ZodNullable<z.ZodAny>;
|
|
5756
5938
|
Source: z.ZodNullable<z.ZodString>;
|
|
5939
|
+
StartedByUser: z.ZodNullable<z.ZodString>;
|
|
5757
5940
|
}, "strip", z.ZodTypeAny, {
|
|
5758
5941
|
ID?: string;
|
|
5759
5942
|
__mj_CreatedAt?: Date;
|
|
5760
5943
|
__mj_UpdatedAt?: Date;
|
|
5761
5944
|
Status?: string;
|
|
5762
|
-
|
|
5945
|
+
Configuration?: any;
|
|
5946
|
+
ErrorMessage?: string;
|
|
5947
|
+
ErrorCount?: number;
|
|
5763
5948
|
StartTime?: Date;
|
|
5764
5949
|
EndTime?: Date;
|
|
5950
|
+
SourceID?: string;
|
|
5765
5951
|
ProcessedItems?: number;
|
|
5952
|
+
StartedByUserID?: string;
|
|
5953
|
+
TotalItemCount?: number;
|
|
5954
|
+
LastProcessedOffset?: number;
|
|
5955
|
+
BatchSize?: number;
|
|
5956
|
+
CancellationRequested?: boolean;
|
|
5766
5957
|
Source?: string;
|
|
5958
|
+
StartedByUser?: string;
|
|
5767
5959
|
}, {
|
|
5768
5960
|
ID?: string;
|
|
5769
5961
|
__mj_CreatedAt?: Date;
|
|
5770
5962
|
__mj_UpdatedAt?: Date;
|
|
5771
5963
|
Status?: string;
|
|
5772
|
-
|
|
5964
|
+
Configuration?: any;
|
|
5965
|
+
ErrorMessage?: string;
|
|
5966
|
+
ErrorCount?: number;
|
|
5773
5967
|
StartTime?: Date;
|
|
5774
5968
|
EndTime?: Date;
|
|
5969
|
+
SourceID?: string;
|
|
5775
5970
|
ProcessedItems?: number;
|
|
5971
|
+
StartedByUserID?: string;
|
|
5972
|
+
TotalItemCount?: number;
|
|
5973
|
+
LastProcessedOffset?: number;
|
|
5974
|
+
BatchSize?: number;
|
|
5975
|
+
CancellationRequested?: boolean;
|
|
5776
5976
|
Source?: string;
|
|
5977
|
+
StartedByUser?: string;
|
|
5777
5978
|
}>;
|
|
5778
5979
|
export type MJContentProcessRunEntityType = z.infer<typeof MJContentProcessRunSchema>;
|
|
5779
5980
|
/**
|
|
@@ -5846,18 +6047,24 @@ export declare const MJContentSourceTypeSchema: z.ZodObject<{
|
|
|
5846
6047
|
Description: z.ZodNullable<z.ZodString>;
|
|
5847
6048
|
__mj_CreatedAt: z.ZodDate;
|
|
5848
6049
|
__mj_UpdatedAt: z.ZodDate;
|
|
6050
|
+
DriverClass: z.ZodNullable<z.ZodString>;
|
|
6051
|
+
Configuration: z.ZodNullable<z.ZodAny>;
|
|
5849
6052
|
}, "strip", z.ZodTypeAny, {
|
|
5850
6053
|
ID?: string;
|
|
5851
6054
|
__mj_CreatedAt?: Date;
|
|
5852
6055
|
__mj_UpdatedAt?: Date;
|
|
5853
6056
|
Name?: string;
|
|
5854
6057
|
Description?: string;
|
|
6058
|
+
DriverClass?: string;
|
|
6059
|
+
Configuration?: any;
|
|
5855
6060
|
}, {
|
|
5856
6061
|
ID?: string;
|
|
5857
6062
|
__mj_CreatedAt?: Date;
|
|
5858
6063
|
__mj_UpdatedAt?: Date;
|
|
5859
6064
|
Name?: string;
|
|
5860
6065
|
Description?: string;
|
|
6066
|
+
DriverClass?: string;
|
|
6067
|
+
Configuration?: any;
|
|
5861
6068
|
}>;
|
|
5862
6069
|
export type MJContentSourceTypeEntityType = z.infer<typeof MJContentSourceTypeSchema>;
|
|
5863
6070
|
/**
|
|
@@ -5874,18 +6081,28 @@ export declare const MJContentSourceSchema: z.ZodObject<{
|
|
|
5874
6081
|
__mj_UpdatedAt: z.ZodDate;
|
|
5875
6082
|
EmbeddingModelID: z.ZodNullable<z.ZodString>;
|
|
5876
6083
|
VectorIndexID: z.ZodNullable<z.ZodString>;
|
|
6084
|
+
Configuration: z.ZodNullable<z.ZodAny>;
|
|
6085
|
+
EntityID: z.ZodNullable<z.ZodString>;
|
|
6086
|
+
EntityDocumentID: z.ZodNullable<z.ZodString>;
|
|
6087
|
+
ScheduledActionID: z.ZodNullable<z.ZodString>;
|
|
5877
6088
|
ContentType: z.ZodString;
|
|
5878
6089
|
ContentSourceType: z.ZodString;
|
|
5879
6090
|
ContentFileType: z.ZodString;
|
|
5880
6091
|
EmbeddingModel: z.ZodNullable<z.ZodString>;
|
|
5881
6092
|
VectorIndex: z.ZodNullable<z.ZodString>;
|
|
6093
|
+
Entity: z.ZodNullable<z.ZodString>;
|
|
6094
|
+
EntityDocument: z.ZodNullable<z.ZodString>;
|
|
6095
|
+
ScheduledAction: z.ZodNullable<z.ZodString>;
|
|
5882
6096
|
}, "strip", z.ZodTypeAny, {
|
|
5883
6097
|
ID?: string;
|
|
6098
|
+
EntityID?: string;
|
|
5884
6099
|
__mj_CreatedAt?: Date;
|
|
5885
6100
|
__mj_UpdatedAt?: Date;
|
|
6101
|
+
Entity?: string;
|
|
5886
6102
|
Name?: string;
|
|
5887
6103
|
EmbeddingModelID?: string;
|
|
5888
6104
|
EmbeddingModel?: string;
|
|
6105
|
+
Configuration?: any;
|
|
5889
6106
|
ContentType?: string;
|
|
5890
6107
|
URL?: string;
|
|
5891
6108
|
ContentTypeID?: string;
|
|
@@ -5894,14 +6111,21 @@ export declare const MJContentSourceSchema: z.ZodObject<{
|
|
|
5894
6111
|
ContentSourceType?: string;
|
|
5895
6112
|
ContentFileType?: string;
|
|
5896
6113
|
VectorIndexID?: string;
|
|
6114
|
+
EntityDocumentID?: string;
|
|
6115
|
+
ScheduledActionID?: string;
|
|
5897
6116
|
VectorIndex?: string;
|
|
6117
|
+
EntityDocument?: string;
|
|
6118
|
+
ScheduledAction?: string;
|
|
5898
6119
|
}, {
|
|
5899
6120
|
ID?: string;
|
|
6121
|
+
EntityID?: string;
|
|
5900
6122
|
__mj_CreatedAt?: Date;
|
|
5901
6123
|
__mj_UpdatedAt?: Date;
|
|
6124
|
+
Entity?: string;
|
|
5902
6125
|
Name?: string;
|
|
5903
6126
|
EmbeddingModelID?: string;
|
|
5904
6127
|
EmbeddingModel?: string;
|
|
6128
|
+
Configuration?: any;
|
|
5905
6129
|
ContentType?: string;
|
|
5906
6130
|
URL?: string;
|
|
5907
6131
|
ContentTypeID?: string;
|
|
@@ -5910,7 +6134,11 @@ export declare const MJContentSourceSchema: z.ZodObject<{
|
|
|
5910
6134
|
ContentSourceType?: string;
|
|
5911
6135
|
ContentFileType?: string;
|
|
5912
6136
|
VectorIndexID?: string;
|
|
6137
|
+
EntityDocumentID?: string;
|
|
6138
|
+
ScheduledActionID?: string;
|
|
5913
6139
|
VectorIndex?: string;
|
|
6140
|
+
EntityDocument?: string;
|
|
6141
|
+
ScheduledAction?: string;
|
|
5914
6142
|
}>;
|
|
5915
6143
|
export type MJContentSourceEntityType = z.infer<typeof MJContentSourceSchema>;
|
|
5916
6144
|
/**
|
|
@@ -5956,6 +6184,7 @@ export declare const MJContentTypeSchema: z.ZodObject<{
|
|
|
5956
6184
|
__mj_UpdatedAt: z.ZodDate;
|
|
5957
6185
|
EmbeddingModelID: z.ZodNullable<z.ZodString>;
|
|
5958
6186
|
VectorIndexID: z.ZodNullable<z.ZodString>;
|
|
6187
|
+
Configuration: z.ZodNullable<z.ZodAny>;
|
|
5959
6188
|
AIModel: z.ZodString;
|
|
5960
6189
|
EmbeddingModel: z.ZodNullable<z.ZodString>;
|
|
5961
6190
|
VectorIndex: z.ZodNullable<z.ZodString>;
|
|
@@ -5967,6 +6196,7 @@ export declare const MJContentTypeSchema: z.ZodObject<{
|
|
|
5967
6196
|
Description?: string;
|
|
5968
6197
|
EmbeddingModelID?: string;
|
|
5969
6198
|
EmbeddingModel?: string;
|
|
6199
|
+
Configuration?: any;
|
|
5970
6200
|
AIModelID?: string;
|
|
5971
6201
|
AIModel?: string;
|
|
5972
6202
|
VectorIndexID?: string;
|
|
@@ -5981,6 +6211,7 @@ export declare const MJContentTypeSchema: z.ZodObject<{
|
|
|
5981
6211
|
Description?: string;
|
|
5982
6212
|
EmbeddingModelID?: string;
|
|
5983
6213
|
EmbeddingModel?: string;
|
|
6214
|
+
Configuration?: any;
|
|
5984
6215
|
AIModelID?: string;
|
|
5985
6216
|
AIModel?: string;
|
|
5986
6217
|
VectorIndexID?: string;
|
|
@@ -6373,7 +6604,7 @@ export declare const MJConversationSchema: z.ZodObject<{
|
|
|
6373
6604
|
__mj_UpdatedAt?: Date;
|
|
6374
6605
|
Name?: string;
|
|
6375
6606
|
Description?: string;
|
|
6376
|
-
Status?: "
|
|
6607
|
+
Status?: "Processing" | "Available";
|
|
6377
6608
|
UserID?: string;
|
|
6378
6609
|
Type?: string;
|
|
6379
6610
|
TestRunID?: string;
|
|
@@ -6397,7 +6628,7 @@ export declare const MJConversationSchema: z.ZodObject<{
|
|
|
6397
6628
|
__mj_UpdatedAt?: Date;
|
|
6398
6629
|
Name?: string;
|
|
6399
6630
|
Description?: string;
|
|
6400
|
-
Status?: "
|
|
6631
|
+
Status?: "Processing" | "Available";
|
|
6401
6632
|
UserID?: string;
|
|
6402
6633
|
Type?: string;
|
|
6403
6634
|
TestRunID?: string;
|
|
@@ -7129,16 +7360,20 @@ export declare const MJDuplicateRunDetailSchema: z.ZodObject<{
|
|
|
7129
7360
|
__mj_CreatedAt: z.ZodDate;
|
|
7130
7361
|
__mj_UpdatedAt: z.ZodDate;
|
|
7131
7362
|
RecordMetadata: z.ZodNullable<z.ZodString>;
|
|
7363
|
+
StartedAt: z.ZodNullable<z.ZodDate>;
|
|
7364
|
+
EndedAt: z.ZodNullable<z.ZodDate>;
|
|
7132
7365
|
DuplicateRun: z.ZodString;
|
|
7133
7366
|
}, "strip", z.ZodTypeAny, {
|
|
7134
7367
|
ID?: string;
|
|
7135
7368
|
RecordID?: string;
|
|
7136
7369
|
__mj_CreatedAt?: Date;
|
|
7137
7370
|
__mj_UpdatedAt?: Date;
|
|
7371
|
+
StartedAt?: Date;
|
|
7372
|
+
EndedAt?: Date;
|
|
7138
7373
|
MergeStatus?: "Pending" | "Complete" | "Error" | "Not Applicable";
|
|
7139
7374
|
RecordMetadata?: string;
|
|
7140
7375
|
DuplicateRunID?: string;
|
|
7141
|
-
MatchStatus?: "Pending" | "Complete" | "
|
|
7376
|
+
MatchStatus?: "Pending" | "Complete" | "Skipped" | "Error";
|
|
7142
7377
|
SkippedReason?: string;
|
|
7143
7378
|
MatchErrorMessage?: string;
|
|
7144
7379
|
MergeErrorMessage?: string;
|
|
@@ -7148,10 +7383,12 @@ export declare const MJDuplicateRunDetailSchema: z.ZodObject<{
|
|
|
7148
7383
|
RecordID?: string;
|
|
7149
7384
|
__mj_CreatedAt?: Date;
|
|
7150
7385
|
__mj_UpdatedAt?: Date;
|
|
7386
|
+
StartedAt?: Date;
|
|
7387
|
+
EndedAt?: Date;
|
|
7151
7388
|
MergeStatus?: "Pending" | "Complete" | "Error" | "Not Applicable";
|
|
7152
7389
|
RecordMetadata?: string;
|
|
7153
7390
|
DuplicateRunID?: string;
|
|
7154
|
-
MatchStatus?: "Pending" | "Complete" | "
|
|
7391
|
+
MatchStatus?: "Pending" | "Complete" | "Skipped" | "Error";
|
|
7155
7392
|
SkippedReason?: string;
|
|
7156
7393
|
MatchErrorMessage?: string;
|
|
7157
7394
|
MergeErrorMessage?: string;
|
|
@@ -7175,6 +7412,11 @@ export declare const MJDuplicateRunSchema: z.ZodObject<{
|
|
|
7175
7412
|
ProcessingErrorMessage: z.ZodNullable<z.ZodString>;
|
|
7176
7413
|
__mj_CreatedAt: z.ZodDate;
|
|
7177
7414
|
__mj_UpdatedAt: z.ZodDate;
|
|
7415
|
+
TotalItemCount: z.ZodNullable<z.ZodNumber>;
|
|
7416
|
+
ProcessedItemCount: z.ZodNullable<z.ZodNumber>;
|
|
7417
|
+
LastProcessedOffset: z.ZodNullable<z.ZodNumber>;
|
|
7418
|
+
BatchSize: z.ZodNullable<z.ZodNumber>;
|
|
7419
|
+
CancellationRequested: z.ZodBoolean;
|
|
7178
7420
|
Entity: z.ZodString;
|
|
7179
7421
|
StartedByUser: z.ZodString;
|
|
7180
7422
|
SourceList: z.ZodNullable<z.ZodString>;
|
|
@@ -7187,14 +7429,19 @@ export declare const MJDuplicateRunSchema: z.ZodObject<{
|
|
|
7187
7429
|
Entity?: string;
|
|
7188
7430
|
StartedAt?: Date;
|
|
7189
7431
|
EndedAt?: Date;
|
|
7190
|
-
ApprovalStatus?: "Pending" | "Approved" | "Rejected";
|
|
7191
7432
|
StartedByUserID?: string;
|
|
7433
|
+
TotalItemCount?: number;
|
|
7434
|
+
LastProcessedOffset?: number;
|
|
7435
|
+
BatchSize?: number;
|
|
7436
|
+
CancellationRequested?: boolean;
|
|
7437
|
+
StartedByUser?: string;
|
|
7438
|
+
ApprovalStatus?: "Pending" | "Approved" | "Rejected";
|
|
7192
7439
|
SourceListID?: string;
|
|
7193
7440
|
ApprovalComments?: string;
|
|
7194
7441
|
ApprovedByUserID?: string;
|
|
7195
7442
|
ProcessingStatus?: "Pending" | "Complete" | "Failed" | "In Progress";
|
|
7196
7443
|
ProcessingErrorMessage?: string;
|
|
7197
|
-
|
|
7444
|
+
ProcessedItemCount?: number;
|
|
7198
7445
|
SourceList?: string;
|
|
7199
7446
|
ApprovedByUser?: string;
|
|
7200
7447
|
}, {
|
|
@@ -7205,14 +7452,19 @@ export declare const MJDuplicateRunSchema: z.ZodObject<{
|
|
|
7205
7452
|
Entity?: string;
|
|
7206
7453
|
StartedAt?: Date;
|
|
7207
7454
|
EndedAt?: Date;
|
|
7208
|
-
ApprovalStatus?: "Pending" | "Approved" | "Rejected";
|
|
7209
7455
|
StartedByUserID?: string;
|
|
7456
|
+
TotalItemCount?: number;
|
|
7457
|
+
LastProcessedOffset?: number;
|
|
7458
|
+
BatchSize?: number;
|
|
7459
|
+
CancellationRequested?: boolean;
|
|
7460
|
+
StartedByUser?: string;
|
|
7461
|
+
ApprovalStatus?: "Pending" | "Approved" | "Rejected";
|
|
7210
7462
|
SourceListID?: string;
|
|
7211
7463
|
ApprovalComments?: string;
|
|
7212
7464
|
ApprovedByUserID?: string;
|
|
7213
7465
|
ProcessingStatus?: "Pending" | "Complete" | "Failed" | "In Progress";
|
|
7214
7466
|
ProcessingErrorMessage?: string;
|
|
7215
|
-
|
|
7467
|
+
ProcessedItemCount?: number;
|
|
7216
7468
|
SourceList?: string;
|
|
7217
7469
|
ApprovedByUser?: string;
|
|
7218
7470
|
}>;
|
|
@@ -8610,8 +8862,8 @@ export declare const MJEntityRecordDocumentSchema: z.ZodObject<{
|
|
|
8610
8862
|
__mj_UpdatedAt?: Date;
|
|
8611
8863
|
Entity?: string;
|
|
8612
8864
|
VectorIndexID?: string;
|
|
8613
|
-
VectorIndex?: string;
|
|
8614
8865
|
EntityDocumentID?: string;
|
|
8866
|
+
VectorIndex?: string;
|
|
8615
8867
|
EntityDocument?: string;
|
|
8616
8868
|
DocumentText?: string;
|
|
8617
8869
|
VectorID?: string;
|
|
@@ -8625,8 +8877,8 @@ export declare const MJEntityRecordDocumentSchema: z.ZodObject<{
|
|
|
8625
8877
|
__mj_UpdatedAt?: Date;
|
|
8626
8878
|
Entity?: string;
|
|
8627
8879
|
VectorIndexID?: string;
|
|
8628
|
-
VectorIndex?: string;
|
|
8629
8880
|
EntityDocumentID?: string;
|
|
8881
|
+
VectorIndex?: string;
|
|
8630
8882
|
EntityDocument?: string;
|
|
8631
8883
|
DocumentText?: string;
|
|
8632
8884
|
VectorID?: string;
|
|
@@ -9480,6 +9732,47 @@ export declare const MJIntegrationSchema: z.ZodObject<{
|
|
|
9480
9732
|
BatchRequestWaitTime?: number;
|
|
9481
9733
|
}>;
|
|
9482
9734
|
export type MJIntegrationEntityType = z.infer<typeof MJIntegrationSchema>;
|
|
9735
|
+
/**
|
|
9736
|
+
* zod schema definition for the entity MJ: Knowledge Hub Saved Searches
|
|
9737
|
+
*/
|
|
9738
|
+
export declare const MJKnowledgeHubSavedSearchSchema: z.ZodObject<{
|
|
9739
|
+
ID: z.ZodString;
|
|
9740
|
+
UserID: z.ZodString;
|
|
9741
|
+
Name: z.ZodString;
|
|
9742
|
+
Query: z.ZodString;
|
|
9743
|
+
Filters: z.ZodNullable<z.ZodString>;
|
|
9744
|
+
MinScore: z.ZodNullable<z.ZodNumber>;
|
|
9745
|
+
MaxResults: z.ZodNullable<z.ZodNumber>;
|
|
9746
|
+
NotifyOnNewResults: z.ZodBoolean;
|
|
9747
|
+
__mj_CreatedAt: z.ZodDate;
|
|
9748
|
+
__mj_UpdatedAt: z.ZodDate;
|
|
9749
|
+
User: z.ZodString;
|
|
9750
|
+
}, "strip", z.ZodTypeAny, {
|
|
9751
|
+
ID?: string;
|
|
9752
|
+
User?: string;
|
|
9753
|
+
__mj_CreatedAt?: Date;
|
|
9754
|
+
__mj_UpdatedAt?: Date;
|
|
9755
|
+
Name?: string;
|
|
9756
|
+
UserID?: string;
|
|
9757
|
+
Query?: string;
|
|
9758
|
+
Filters?: string;
|
|
9759
|
+
MinScore?: number;
|
|
9760
|
+
MaxResults?: number;
|
|
9761
|
+
NotifyOnNewResults?: boolean;
|
|
9762
|
+
}, {
|
|
9763
|
+
ID?: string;
|
|
9764
|
+
User?: string;
|
|
9765
|
+
__mj_CreatedAt?: Date;
|
|
9766
|
+
__mj_UpdatedAt?: Date;
|
|
9767
|
+
Name?: string;
|
|
9768
|
+
UserID?: string;
|
|
9769
|
+
Query?: string;
|
|
9770
|
+
Filters?: string;
|
|
9771
|
+
MinScore?: number;
|
|
9772
|
+
MaxResults?: number;
|
|
9773
|
+
NotifyOnNewResults?: boolean;
|
|
9774
|
+
}>;
|
|
9775
|
+
export type MJKnowledgeHubSavedSearchEntityType = z.infer<typeof MJKnowledgeHubSavedSearchSchema>;
|
|
9483
9776
|
/**
|
|
9484
9777
|
* zod schema definition for the entity MJ: Libraries
|
|
9485
9778
|
*/
|
|
@@ -10849,25 +11142,25 @@ export declare const MJQueryDependencySchema: z.ZodObject<{
|
|
|
10849
11142
|
ID?: string;
|
|
10850
11143
|
__mj_CreatedAt?: Date;
|
|
10851
11144
|
__mj_UpdatedAt?: Date;
|
|
11145
|
+
DetectionMethod?: "Manual" | "Auto";
|
|
10852
11146
|
QueryID?: string;
|
|
10853
11147
|
Query?: string;
|
|
10854
11148
|
DependsOnQueryID?: string;
|
|
10855
11149
|
ReferencePath?: string;
|
|
10856
11150
|
Alias?: string;
|
|
10857
11151
|
ParameterMapping?: string;
|
|
10858
|
-
DetectionMethod?: "Manual" | "Auto";
|
|
10859
11152
|
DependsOnQuery?: string;
|
|
10860
11153
|
}, {
|
|
10861
11154
|
ID?: string;
|
|
10862
11155
|
__mj_CreatedAt?: Date;
|
|
10863
11156
|
__mj_UpdatedAt?: Date;
|
|
11157
|
+
DetectionMethod?: "Manual" | "Auto";
|
|
10864
11158
|
QueryID?: string;
|
|
10865
11159
|
Query?: string;
|
|
10866
11160
|
DependsOnQueryID?: string;
|
|
10867
11161
|
ReferencePath?: string;
|
|
10868
11162
|
Alias?: string;
|
|
10869
11163
|
ParameterMapping?: string;
|
|
10870
|
-
DetectionMethod?: "Manual" | "Auto";
|
|
10871
11164
|
DependsOnQuery?: string;
|
|
10872
11165
|
}>;
|
|
10873
11166
|
export type MJQueryDependencyEntityType = z.infer<typeof MJQueryDependencySchema>;
|
|
@@ -10890,9 +11183,9 @@ export declare const MJQueryEntitySchema: z.ZodObject<{
|
|
|
10890
11183
|
__mj_CreatedAt?: Date;
|
|
10891
11184
|
__mj_UpdatedAt?: Date;
|
|
10892
11185
|
Entity?: string;
|
|
11186
|
+
DetectionMethod?: "Manual" | "AI";
|
|
10893
11187
|
QueryID?: string;
|
|
10894
11188
|
Query?: string;
|
|
10895
|
-
DetectionMethod?: "Manual" | "AI";
|
|
10896
11189
|
AutoDetectConfidenceScore?: number;
|
|
10897
11190
|
}, {
|
|
10898
11191
|
ID?: string;
|
|
@@ -10900,9 +11193,9 @@ export declare const MJQueryEntitySchema: z.ZodObject<{
|
|
|
10900
11193
|
__mj_CreatedAt?: Date;
|
|
10901
11194
|
__mj_UpdatedAt?: Date;
|
|
10902
11195
|
Entity?: string;
|
|
11196
|
+
DetectionMethod?: "Manual" | "AI";
|
|
10903
11197
|
QueryID?: string;
|
|
10904
11198
|
Query?: string;
|
|
10905
|
-
DetectionMethod?: "Manual" | "AI";
|
|
10906
11199
|
AutoDetectConfidenceScore?: number;
|
|
10907
11200
|
}>;
|
|
10908
11201
|
export type MJQueryEntityEntityType = z.infer<typeof MJQueryEntitySchema>;
|
|
@@ -10937,9 +11230,9 @@ export declare const MJQueryFieldSchema: z.ZodObject<{
|
|
|
10937
11230
|
Description?: string;
|
|
10938
11231
|
Sequence?: number;
|
|
10939
11232
|
SourceFieldName?: string;
|
|
11233
|
+
DetectionMethod?: "Manual" | "AI";
|
|
10940
11234
|
QueryID?: string;
|
|
10941
11235
|
Query?: string;
|
|
10942
|
-
DetectionMethod?: "Manual" | "AI";
|
|
10943
11236
|
AutoDetectConfidenceScore?: number;
|
|
10944
11237
|
SQLBaseType?: string;
|
|
10945
11238
|
SQLFullType?: string;
|
|
@@ -10957,9 +11250,9 @@ export declare const MJQueryFieldSchema: z.ZodObject<{
|
|
|
10957
11250
|
Description?: string;
|
|
10958
11251
|
Sequence?: number;
|
|
10959
11252
|
SourceFieldName?: string;
|
|
11253
|
+
DetectionMethod?: "Manual" | "AI";
|
|
10960
11254
|
QueryID?: string;
|
|
10961
11255
|
Query?: string;
|
|
10962
|
-
DetectionMethod?: "Manual" | "AI";
|
|
10963
11256
|
AutoDetectConfidenceScore?: number;
|
|
10964
11257
|
SQLBaseType?: string;
|
|
10965
11258
|
SQLFullType?: string;
|
|
@@ -10998,9 +11291,9 @@ export declare const MJQueryParameterSchema: z.ZodObject<{
|
|
|
10998
11291
|
DefaultValue?: string;
|
|
10999
11292
|
Type?: "string" | "number" | "boolean" | "date" | "array";
|
|
11000
11293
|
IsRequired?: boolean;
|
|
11294
|
+
DetectionMethod?: "Manual" | "AI";
|
|
11001
11295
|
QueryID?: string;
|
|
11002
11296
|
Query?: string;
|
|
11003
|
-
DetectionMethod?: "Manual" | "AI";
|
|
11004
11297
|
AutoDetectConfidenceScore?: number;
|
|
11005
11298
|
SampleValue?: string;
|
|
11006
11299
|
ValidationFilters?: string;
|
|
@@ -11013,9 +11306,9 @@ export declare const MJQueryParameterSchema: z.ZodObject<{
|
|
|
11013
11306
|
DefaultValue?: string;
|
|
11014
11307
|
Type?: "string" | "number" | "boolean" | "date" | "array";
|
|
11015
11308
|
IsRequired?: boolean;
|
|
11309
|
+
DetectionMethod?: "Manual" | "AI";
|
|
11016
11310
|
QueryID?: string;
|
|
11017
11311
|
Query?: string;
|
|
11018
|
-
DetectionMethod?: "Manual" | "AI";
|
|
11019
11312
|
AutoDetectConfidenceScore?: number;
|
|
11020
11313
|
SampleValue?: string;
|
|
11021
11314
|
ValidationFilters?: string;
|
|
@@ -12041,10 +12334,10 @@ export declare const MJScheduledActionParamSchema: z.ZodObject<{
|
|
|
12041
12334
|
Comments?: string;
|
|
12042
12335
|
ValueType?: "Static" | "SQL Statement";
|
|
12043
12336
|
Value?: string;
|
|
12044
|
-
ActionParamID?: string;
|
|
12045
|
-
ActionParam?: string;
|
|
12046
12337
|
ScheduledActionID?: string;
|
|
12047
12338
|
ScheduledAction?: string;
|
|
12339
|
+
ActionParamID?: string;
|
|
12340
|
+
ActionParam?: string;
|
|
12048
12341
|
}, {
|
|
12049
12342
|
ID?: string;
|
|
12050
12343
|
__mj_CreatedAt?: Date;
|
|
@@ -12052,10 +12345,10 @@ export declare const MJScheduledActionParamSchema: z.ZodObject<{
|
|
|
12052
12345
|
Comments?: string;
|
|
12053
12346
|
ValueType?: "Static" | "SQL Statement";
|
|
12054
12347
|
Value?: string;
|
|
12055
|
-
ActionParamID?: string;
|
|
12056
|
-
ActionParam?: string;
|
|
12057
12348
|
ScheduledActionID?: string;
|
|
12058
12349
|
ScheduledAction?: string;
|
|
12350
|
+
ActionParamID?: string;
|
|
12351
|
+
ActionParam?: string;
|
|
12059
12352
|
}>;
|
|
12060
12353
|
export type MJScheduledActionParamEntityType = z.infer<typeof MJScheduledActionParamSchema>;
|
|
12061
12354
|
/**
|
|
@@ -12414,6 +12707,82 @@ export declare const MJSQLDialectSchema: z.ZodObject<{
|
|
|
12414
12707
|
WebURL?: string;
|
|
12415
12708
|
}>;
|
|
12416
12709
|
export type MJSQLDialectEntityType = z.infer<typeof MJSQLDialectSchema>;
|
|
12710
|
+
/**
|
|
12711
|
+
* zod schema definition for the entity MJ: Tag Audit Logs
|
|
12712
|
+
*/
|
|
12713
|
+
export declare const MJTagAuditLogSchema: z.ZodObject<{
|
|
12714
|
+
ID: z.ZodString;
|
|
12715
|
+
TagID: z.ZodString;
|
|
12716
|
+
Action: z.ZodUnion<[z.ZodLiteral<"Created">, z.ZodLiteral<"Deleted">, z.ZodLiteral<"Deprecated">, z.ZodLiteral<"DescriptionChanged">, z.ZodLiteral<"Merged">, z.ZodLiteral<"Moved">, z.ZodLiteral<"Reactivated">, z.ZodLiteral<"Renamed">, z.ZodLiteral<"Split">]>;
|
|
12717
|
+
Details: z.ZodNullable<z.ZodString>;
|
|
12718
|
+
PerformedByUserID: z.ZodString;
|
|
12719
|
+
RelatedTagID: z.ZodNullable<z.ZodString>;
|
|
12720
|
+
__mj_CreatedAt: z.ZodDate;
|
|
12721
|
+
__mj_UpdatedAt: z.ZodDate;
|
|
12722
|
+
Tag: z.ZodString;
|
|
12723
|
+
PerformedByUser: z.ZodString;
|
|
12724
|
+
RelatedTag: z.ZodNullable<z.ZodString>;
|
|
12725
|
+
}, "strip", z.ZodTypeAny, {
|
|
12726
|
+
ID?: string;
|
|
12727
|
+
__mj_CreatedAt?: Date;
|
|
12728
|
+
__mj_UpdatedAt?: Date;
|
|
12729
|
+
Action?: "Deprecated" | "Merged" | "Created" | "Deleted" | "DescriptionChanged" | "Moved" | "Reactivated" | "Renamed" | "Split";
|
|
12730
|
+
Details?: string;
|
|
12731
|
+
Tag?: string;
|
|
12732
|
+
TagID?: string;
|
|
12733
|
+
PerformedByUserID?: string;
|
|
12734
|
+
RelatedTagID?: string;
|
|
12735
|
+
PerformedByUser?: string;
|
|
12736
|
+
RelatedTag?: string;
|
|
12737
|
+
}, {
|
|
12738
|
+
ID?: string;
|
|
12739
|
+
__mj_CreatedAt?: Date;
|
|
12740
|
+
__mj_UpdatedAt?: Date;
|
|
12741
|
+
Action?: "Deprecated" | "Merged" | "Created" | "Deleted" | "DescriptionChanged" | "Moved" | "Reactivated" | "Renamed" | "Split";
|
|
12742
|
+
Details?: string;
|
|
12743
|
+
Tag?: string;
|
|
12744
|
+
TagID?: string;
|
|
12745
|
+
PerformedByUserID?: string;
|
|
12746
|
+
RelatedTagID?: string;
|
|
12747
|
+
PerformedByUser?: string;
|
|
12748
|
+
RelatedTag?: string;
|
|
12749
|
+
}>;
|
|
12750
|
+
export type MJTagAuditLogEntityType = z.infer<typeof MJTagAuditLogSchema>;
|
|
12751
|
+
/**
|
|
12752
|
+
* zod schema definition for the entity MJ: Tag Co Occurrences
|
|
12753
|
+
*/
|
|
12754
|
+
export declare const MJTagCoOccurrenceSchema: z.ZodObject<{
|
|
12755
|
+
ID: z.ZodString;
|
|
12756
|
+
TagAID: z.ZodString;
|
|
12757
|
+
TagBID: z.ZodString;
|
|
12758
|
+
CoOccurrenceCount: z.ZodNumber;
|
|
12759
|
+
LastComputedAt: z.ZodDate;
|
|
12760
|
+
__mj_CreatedAt: z.ZodDate;
|
|
12761
|
+
__mj_UpdatedAt: z.ZodDate;
|
|
12762
|
+
TagA: z.ZodString;
|
|
12763
|
+
TagB: z.ZodString;
|
|
12764
|
+
}, "strip", z.ZodTypeAny, {
|
|
12765
|
+
ID?: string;
|
|
12766
|
+
__mj_CreatedAt?: Date;
|
|
12767
|
+
__mj_UpdatedAt?: Date;
|
|
12768
|
+
TagAID?: string;
|
|
12769
|
+
TagBID?: string;
|
|
12770
|
+
CoOccurrenceCount?: number;
|
|
12771
|
+
LastComputedAt?: Date;
|
|
12772
|
+
TagA?: string;
|
|
12773
|
+
TagB?: string;
|
|
12774
|
+
}, {
|
|
12775
|
+
ID?: string;
|
|
12776
|
+
__mj_CreatedAt?: Date;
|
|
12777
|
+
__mj_UpdatedAt?: Date;
|
|
12778
|
+
TagAID?: string;
|
|
12779
|
+
TagBID?: string;
|
|
12780
|
+
CoOccurrenceCount?: number;
|
|
12781
|
+
LastComputedAt?: Date;
|
|
12782
|
+
TagA?: string;
|
|
12783
|
+
TagB?: string;
|
|
12784
|
+
}>;
|
|
12785
|
+
export type MJTagCoOccurrenceEntityType = z.infer<typeof MJTagCoOccurrenceSchema>;
|
|
12417
12786
|
/**
|
|
12418
12787
|
* zod schema definition for the entity MJ: Tagged Items
|
|
12419
12788
|
*/
|
|
@@ -12424,6 +12793,7 @@ export declare const MJTaggedItemSchema: z.ZodObject<{
|
|
|
12424
12793
|
RecordID: z.ZodString;
|
|
12425
12794
|
__mj_CreatedAt: z.ZodDate;
|
|
12426
12795
|
__mj_UpdatedAt: z.ZodDate;
|
|
12796
|
+
Weight: z.ZodNumber;
|
|
12427
12797
|
Tag: z.ZodString;
|
|
12428
12798
|
Entity: z.ZodString;
|
|
12429
12799
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -12433,6 +12803,7 @@ export declare const MJTaggedItemSchema: z.ZodObject<{
|
|
|
12433
12803
|
__mj_CreatedAt?: Date;
|
|
12434
12804
|
__mj_UpdatedAt?: Date;
|
|
12435
12805
|
Entity?: string;
|
|
12806
|
+
Weight?: number;
|
|
12436
12807
|
Tag?: string;
|
|
12437
12808
|
TagID?: string;
|
|
12438
12809
|
}, {
|
|
@@ -12442,6 +12813,7 @@ export declare const MJTaggedItemSchema: z.ZodObject<{
|
|
|
12442
12813
|
__mj_CreatedAt?: Date;
|
|
12443
12814
|
__mj_UpdatedAt?: Date;
|
|
12444
12815
|
Entity?: string;
|
|
12816
|
+
Weight?: number;
|
|
12445
12817
|
Tag?: string;
|
|
12446
12818
|
TagID?: string;
|
|
12447
12819
|
}>;
|
|
@@ -12457,8 +12829,12 @@ export declare const MJTagSchema: z.ZodObject<{
|
|
|
12457
12829
|
Description: z.ZodNullable<z.ZodString>;
|
|
12458
12830
|
__mj_CreatedAt: z.ZodDate;
|
|
12459
12831
|
__mj_UpdatedAt: z.ZodDate;
|
|
12832
|
+
Status: z.ZodUnion<[z.ZodLiteral<"Active">, z.ZodLiteral<"Deleted">, z.ZodLiteral<"Deprecated">, z.ZodLiteral<"Merged">]>;
|
|
12833
|
+
MergedIntoTagID: z.ZodNullable<z.ZodString>;
|
|
12460
12834
|
Parent: z.ZodNullable<z.ZodString>;
|
|
12835
|
+
MergedIntoTag: z.ZodNullable<z.ZodString>;
|
|
12461
12836
|
RootParentID: z.ZodNullable<z.ZodString>;
|
|
12837
|
+
RootMergedIntoTagID: z.ZodNullable<z.ZodString>;
|
|
12462
12838
|
}, "strip", z.ZodTypeAny, {
|
|
12463
12839
|
ID?: string;
|
|
12464
12840
|
__mj_CreatedAt?: Date;
|
|
@@ -12466,9 +12842,13 @@ export declare const MJTagSchema: z.ZodObject<{
|
|
|
12466
12842
|
Name?: string;
|
|
12467
12843
|
Description?: string;
|
|
12468
12844
|
ParentID?: string;
|
|
12845
|
+
Status?: "Active" | "Deprecated" | "Merged" | "Deleted";
|
|
12469
12846
|
Parent?: string;
|
|
12470
12847
|
RootParentID?: string;
|
|
12471
12848
|
DisplayName?: string;
|
|
12849
|
+
MergedIntoTagID?: string;
|
|
12850
|
+
MergedIntoTag?: string;
|
|
12851
|
+
RootMergedIntoTagID?: string;
|
|
12472
12852
|
}, {
|
|
12473
12853
|
ID?: string;
|
|
12474
12854
|
__mj_CreatedAt?: Date;
|
|
@@ -12476,9 +12856,13 @@ export declare const MJTagSchema: z.ZodObject<{
|
|
|
12476
12856
|
Name?: string;
|
|
12477
12857
|
Description?: string;
|
|
12478
12858
|
ParentID?: string;
|
|
12859
|
+
Status?: "Active" | "Deprecated" | "Merged" | "Deleted";
|
|
12479
12860
|
Parent?: string;
|
|
12480
12861
|
RootParentID?: string;
|
|
12481
12862
|
DisplayName?: string;
|
|
12863
|
+
MergedIntoTagID?: string;
|
|
12864
|
+
MergedIntoTag?: string;
|
|
12865
|
+
RootMergedIntoTagID?: string;
|
|
12482
12866
|
}>;
|
|
12483
12867
|
export type MJTagEntityType = z.infer<typeof MJTagSchema>;
|
|
12484
12868
|
/**
|
|
@@ -13047,7 +13431,7 @@ export declare const MJTestRunSchema: z.ZodObject<{
|
|
|
13047
13431
|
ID?: string;
|
|
13048
13432
|
__mj_CreatedAt?: Date;
|
|
13049
13433
|
__mj_UpdatedAt?: Date;
|
|
13050
|
-
Status?: "Pending" | "Failed" | "Running" | "Timeout" | "
|
|
13434
|
+
Status?: "Pending" | "Failed" | "Running" | "Timeout" | "Skipped" | "Error" | "Passed";
|
|
13051
13435
|
StartedAt?: Date;
|
|
13052
13436
|
Sequence?: number;
|
|
13053
13437
|
DurationSeconds?: number;
|
|
@@ -13084,7 +13468,7 @@ export declare const MJTestRunSchema: z.ZodObject<{
|
|
|
13084
13468
|
ID?: string;
|
|
13085
13469
|
__mj_CreatedAt?: Date;
|
|
13086
13470
|
__mj_UpdatedAt?: Date;
|
|
13087
|
-
Status?: "Pending" | "Failed" | "Running" | "Timeout" | "
|
|
13471
|
+
Status?: "Pending" | "Failed" | "Running" | "Timeout" | "Skipped" | "Error" | "Passed";
|
|
13088
13472
|
StartedAt?: Date;
|
|
13089
13473
|
Sequence?: number;
|
|
13090
13474
|
DurationSeconds?: number;
|
|
@@ -13885,8 +14269,8 @@ export declare const MJUserViewSchema: z.ZodObject<{
|
|
|
13885
14269
|
CategoryID: z.ZodNullable<z.ZodString>;
|
|
13886
14270
|
IsShared: z.ZodBoolean;
|
|
13887
14271
|
IsDefault: z.ZodBoolean;
|
|
13888
|
-
GridState: z.ZodNullable<z.
|
|
13889
|
-
FilterState: z.ZodNullable<z.
|
|
14272
|
+
GridState: z.ZodNullable<z.ZodAny>;
|
|
14273
|
+
FilterState: z.ZodNullable<z.ZodAny>;
|
|
13890
14274
|
CustomFilterState: z.ZodBoolean;
|
|
13891
14275
|
SmartFilterEnabled: z.ZodBoolean;
|
|
13892
14276
|
SmartFilterPrompt: z.ZodNullable<z.ZodString>;
|
|
@@ -13894,12 +14278,12 @@ export declare const MJUserViewSchema: z.ZodObject<{
|
|
|
13894
14278
|
SmartFilterExplanation: z.ZodNullable<z.ZodString>;
|
|
13895
14279
|
WhereClause: z.ZodNullable<z.ZodString>;
|
|
13896
14280
|
CustomWhereClause: z.ZodBoolean;
|
|
13897
|
-
SortState: z.ZodNullable<z.
|
|
14281
|
+
SortState: z.ZodNullable<z.ZodAny>;
|
|
13898
14282
|
__mj_CreatedAt: z.ZodDate;
|
|
13899
14283
|
__mj_UpdatedAt: z.ZodDate;
|
|
13900
14284
|
Thumbnail: z.ZodNullable<z.ZodString>;
|
|
13901
|
-
CardState: z.ZodNullable<z.
|
|
13902
|
-
DisplayState: z.ZodNullable<z.
|
|
14285
|
+
CardState: z.ZodNullable<z.ZodAny>;
|
|
14286
|
+
DisplayState: z.ZodNullable<z.ZodAny>;
|
|
13903
14287
|
UserName: z.ZodString;
|
|
13904
14288
|
UserFirstLast: z.ZodNullable<z.ZodString>;
|
|
13905
14289
|
UserEmail: z.ZodString;
|
|
@@ -13924,17 +14308,17 @@ export declare const MJUserViewSchema: z.ZodObject<{
|
|
|
13924
14308
|
UserFirstLast?: string;
|
|
13925
14309
|
UserEmail?: string;
|
|
13926
14310
|
IsShared?: boolean;
|
|
13927
|
-
GridState?:
|
|
13928
|
-
FilterState?:
|
|
14311
|
+
GridState?: any;
|
|
14312
|
+
FilterState?: any;
|
|
13929
14313
|
CustomFilterState?: boolean;
|
|
13930
14314
|
SmartFilterEnabled?: boolean;
|
|
13931
14315
|
SmartFilterPrompt?: string;
|
|
13932
14316
|
SmartFilterWhereClause?: string;
|
|
13933
14317
|
SmartFilterExplanation?: string;
|
|
13934
14318
|
CustomWhereClause?: boolean;
|
|
13935
|
-
SortState?:
|
|
13936
|
-
CardState?:
|
|
13937
|
-
DisplayState?:
|
|
14319
|
+
SortState?: any;
|
|
14320
|
+
CardState?: any;
|
|
14321
|
+
DisplayState?: any;
|
|
13938
14322
|
UserType?: string;
|
|
13939
14323
|
}, {
|
|
13940
14324
|
ID?: string;
|
|
@@ -13954,17 +14338,17 @@ export declare const MJUserViewSchema: z.ZodObject<{
|
|
|
13954
14338
|
UserFirstLast?: string;
|
|
13955
14339
|
UserEmail?: string;
|
|
13956
14340
|
IsShared?: boolean;
|
|
13957
|
-
GridState?:
|
|
13958
|
-
FilterState?:
|
|
14341
|
+
GridState?: any;
|
|
14342
|
+
FilterState?: any;
|
|
13959
14343
|
CustomFilterState?: boolean;
|
|
13960
14344
|
SmartFilterEnabled?: boolean;
|
|
13961
14345
|
SmartFilterPrompt?: string;
|
|
13962
14346
|
SmartFilterWhereClause?: string;
|
|
13963
14347
|
SmartFilterExplanation?: string;
|
|
13964
14348
|
CustomWhereClause?: boolean;
|
|
13965
|
-
SortState?:
|
|
13966
|
-
CardState?:
|
|
13967
|
-
DisplayState?:
|
|
14349
|
+
SortState?: any;
|
|
14350
|
+
CardState?: any;
|
|
14351
|
+
DisplayState?: any;
|
|
13968
14352
|
UserType?: string;
|
|
13969
14353
|
}>;
|
|
13970
14354
|
export type MJUserViewEntityType = z.infer<typeof MJUserViewSchema>;
|
|
@@ -26557,6 +26941,20 @@ export declare class MJApplicationSettingEntity extends BaseEntity<MJApplication
|
|
|
26557
26941
|
*/
|
|
26558
26942
|
get Application(): string;
|
|
26559
26943
|
}
|
|
26944
|
+
/**
|
|
26945
|
+
* Describes a single navigation item in an Application's default tab bar.
|
|
26946
|
+
*
|
|
26947
|
+
* Stored as a JSON array in the `DefaultNavItems` column of the `Applications` entity.
|
|
26948
|
+
* CodeGen emits a strongly-typed `DefaultNavItemsObject` accessor on `ApplicationEntity`
|
|
26949
|
+
* that returns `MJApplicationEntity_IDefaultNavItem[]`.
|
|
26950
|
+
*
|
|
26951
|
+
* When a user opens an application for the first time (or has no saved state),
|
|
26952
|
+
* `BaseApplication.GetNavItems()` parses this array to create the initial set of tabs.
|
|
26953
|
+
* Each item maps to either a persisted Dashboard (via `RecordID`) or a custom component
|
|
26954
|
+
* registered with `@RegisterClass(BaseResourceComponent, DriverClass)`.
|
|
26955
|
+
*
|
|
26956
|
+
* Exactly one item should have `isDefault: true` to indicate which tab is focused on load.
|
|
26957
|
+
*/
|
|
26560
26958
|
export interface MJApplicationEntity_IDefaultNavItem {
|
|
26561
26959
|
/** Display label for the navigation item */
|
|
26562
26960
|
Label: string;
|
|
@@ -31016,6 +31414,154 @@ export declare class MJContentItemAttributeEntity extends BaseEntity<MJContentIt
|
|
|
31016
31414
|
*/
|
|
31017
31415
|
get ContentItem(): string | null;
|
|
31018
31416
|
}
|
|
31417
|
+
/**
|
|
31418
|
+
* MJ: Content Item Duplicates - strongly typed entity sub-class
|
|
31419
|
+
* * Schema: __mj
|
|
31420
|
+
* * Base Table: ContentItemDuplicate
|
|
31421
|
+
* * Base View: vwContentItemDuplicates
|
|
31422
|
+
* * @description Detected duplicate or near-duplicate content items across sources. Each row represents a pair of items with similarity scoring and resolution tracking.
|
|
31423
|
+
* * Primary Key: ID
|
|
31424
|
+
* @extends {BaseEntity}
|
|
31425
|
+
* @class
|
|
31426
|
+
* @public
|
|
31427
|
+
*/
|
|
31428
|
+
export declare class MJContentItemDuplicateEntity extends BaseEntity<MJContentItemDuplicateEntityType> {
|
|
31429
|
+
/**
|
|
31430
|
+
* Loads the MJ: Content Item Duplicates record from the database
|
|
31431
|
+
* @param ID: string - primary key value to load the MJ: Content Item Duplicates record.
|
|
31432
|
+
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
31433
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
31434
|
+
* @public
|
|
31435
|
+
* @async
|
|
31436
|
+
* @memberof MJContentItemDuplicateEntity
|
|
31437
|
+
* @method
|
|
31438
|
+
* @override
|
|
31439
|
+
*/
|
|
31440
|
+
Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
|
|
31441
|
+
/**
|
|
31442
|
+
* * Field Name: ID
|
|
31443
|
+
* * Display Name: ID
|
|
31444
|
+
* * SQL Data Type: uniqueidentifier
|
|
31445
|
+
* * Default Value: newsequentialid()
|
|
31446
|
+
*/
|
|
31447
|
+
get ID(): string;
|
|
31448
|
+
set ID(value: string);
|
|
31449
|
+
/**
|
|
31450
|
+
* * Field Name: ContentItemAID
|
|
31451
|
+
* * Display Name: Content Item A ID
|
|
31452
|
+
* * SQL Data Type: uniqueidentifier
|
|
31453
|
+
* * Related Entity/Foreign Key: MJ: Content Items (vwContentItems.ID)
|
|
31454
|
+
*/
|
|
31455
|
+
get ContentItemAID(): string;
|
|
31456
|
+
set ContentItemAID(value: string);
|
|
31457
|
+
/**
|
|
31458
|
+
* * Field Name: ContentItemBID
|
|
31459
|
+
* * Display Name: Content Item B ID
|
|
31460
|
+
* * SQL Data Type: uniqueidentifier
|
|
31461
|
+
* * Related Entity/Foreign Key: MJ: Content Items (vwContentItems.ID)
|
|
31462
|
+
*/
|
|
31463
|
+
get ContentItemBID(): string;
|
|
31464
|
+
set ContentItemBID(value: string);
|
|
31465
|
+
/**
|
|
31466
|
+
* * Field Name: SimilarityScore
|
|
31467
|
+
* * Display Name: Similarity Score
|
|
31468
|
+
* * SQL Data Type: decimal(5, 4)
|
|
31469
|
+
* * Description: Cosine similarity (for Vector) or exact match score (1.0 for Checksum/URL). Range 0.0-1.0.
|
|
31470
|
+
*/
|
|
31471
|
+
get SimilarityScore(): number;
|
|
31472
|
+
set SimilarityScore(value: number);
|
|
31473
|
+
/**
|
|
31474
|
+
* * Field Name: DetectionMethod
|
|
31475
|
+
* * Display Name: Detection Method
|
|
31476
|
+
* * SQL Data Type: nvarchar(30)
|
|
31477
|
+
* * Default Value: Checksum
|
|
31478
|
+
* * Value List Type: List
|
|
31479
|
+
* * Possible Values
|
|
31480
|
+
* * Checksum
|
|
31481
|
+
* * Title
|
|
31482
|
+
* * URL
|
|
31483
|
+
* * Vector
|
|
31484
|
+
* * Description: How the duplicate was detected: Checksum (identical text hash), Vector (embedding similarity), Title (same title text), URL (same source URL).
|
|
31485
|
+
*/
|
|
31486
|
+
get DetectionMethod(): 'Checksum' | 'Title' | 'URL' | 'Vector';
|
|
31487
|
+
set DetectionMethod(value: 'Checksum' | 'Title' | 'URL' | 'Vector');
|
|
31488
|
+
/**
|
|
31489
|
+
* * Field Name: Status
|
|
31490
|
+
* * Display Name: Status
|
|
31491
|
+
* * SQL Data Type: nvarchar(20)
|
|
31492
|
+
* * Default Value: Pending
|
|
31493
|
+
* * Value List Type: List
|
|
31494
|
+
* * Possible Values
|
|
31495
|
+
* * Confirmed
|
|
31496
|
+
* * Dismissed
|
|
31497
|
+
* * Merged
|
|
31498
|
+
* * Pending
|
|
31499
|
+
* * Description: Current status: Pending (awaiting review), Confirmed (verified duplicate), Dismissed (not a duplicate), Merged (one item was removed).
|
|
31500
|
+
*/
|
|
31501
|
+
get Status(): 'Confirmed' | 'Dismissed' | 'Merged' | 'Pending';
|
|
31502
|
+
set Status(value: 'Confirmed' | 'Dismissed' | 'Merged' | 'Pending');
|
|
31503
|
+
/**
|
|
31504
|
+
* * Field Name: ResolvedByUserID
|
|
31505
|
+
* * Display Name: Resolved By User ID
|
|
31506
|
+
* * SQL Data Type: uniqueidentifier
|
|
31507
|
+
* * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
|
|
31508
|
+
*/
|
|
31509
|
+
get ResolvedByUserID(): string | null;
|
|
31510
|
+
set ResolvedByUserID(value: string | null);
|
|
31511
|
+
/**
|
|
31512
|
+
* * Field Name: ResolvedAt
|
|
31513
|
+
* * Display Name: Resolved At
|
|
31514
|
+
* * SQL Data Type: datetimeoffset
|
|
31515
|
+
*/
|
|
31516
|
+
get ResolvedAt(): Date | null;
|
|
31517
|
+
set ResolvedAt(value: Date | null);
|
|
31518
|
+
/**
|
|
31519
|
+
* * Field Name: Resolution
|
|
31520
|
+
* * Display Name: Resolution
|
|
31521
|
+
* * SQL Data Type: nvarchar(20)
|
|
31522
|
+
* * Value List Type: List
|
|
31523
|
+
* * Possible Values
|
|
31524
|
+
* * KeepA
|
|
31525
|
+
* * KeepB
|
|
31526
|
+
* * MergeBoth
|
|
31527
|
+
* * NotDuplicate
|
|
31528
|
+
* * Description: How the duplicate was resolved: KeepA (keep first, remove second), KeepB (keep second, remove first), MergeBoth (combine into one), NotDuplicate (false positive).
|
|
31529
|
+
*/
|
|
31530
|
+
get Resolution(): 'KeepA' | 'KeepB' | 'MergeBoth' | 'NotDuplicate' | null;
|
|
31531
|
+
set Resolution(value: 'KeepA' | 'KeepB' | 'MergeBoth' | 'NotDuplicate' | null);
|
|
31532
|
+
/**
|
|
31533
|
+
* * Field Name: __mj_CreatedAt
|
|
31534
|
+
* * Display Name: Created At
|
|
31535
|
+
* * SQL Data Type: datetimeoffset
|
|
31536
|
+
* * Default Value: getutcdate()
|
|
31537
|
+
*/
|
|
31538
|
+
get __mj_CreatedAt(): Date;
|
|
31539
|
+
/**
|
|
31540
|
+
* * Field Name: __mj_UpdatedAt
|
|
31541
|
+
* * Display Name: Updated At
|
|
31542
|
+
* * SQL Data Type: datetimeoffset
|
|
31543
|
+
* * Default Value: getutcdate()
|
|
31544
|
+
*/
|
|
31545
|
+
get __mj_UpdatedAt(): Date;
|
|
31546
|
+
/**
|
|
31547
|
+
* * Field Name: ContentItemA
|
|
31548
|
+
* * Display Name: Content Item A
|
|
31549
|
+
* * SQL Data Type: nvarchar(250)
|
|
31550
|
+
*/
|
|
31551
|
+
get ContentItemA(): string | null;
|
|
31552
|
+
/**
|
|
31553
|
+
* * Field Name: ContentItemB
|
|
31554
|
+
* * Display Name: Content Item B
|
|
31555
|
+
* * SQL Data Type: nvarchar(250)
|
|
31556
|
+
*/
|
|
31557
|
+
get ContentItemB(): string | null;
|
|
31558
|
+
/**
|
|
31559
|
+
* * Field Name: ResolvedByUser
|
|
31560
|
+
* * Display Name: Resolved By User
|
|
31561
|
+
* * SQL Data Type: nvarchar(100)
|
|
31562
|
+
*/
|
|
31563
|
+
get ResolvedByUser(): string | null;
|
|
31564
|
+
}
|
|
31019
31565
|
/**
|
|
31020
31566
|
* MJ: Content Item Tags - strongly typed entity sub-class
|
|
31021
31567
|
* * Schema: __mj
|
|
@@ -31050,7 +31596,7 @@ export declare class MJContentItemTagEntity extends BaseEntity<MJContentItemTagE
|
|
|
31050
31596
|
set ID(value: string);
|
|
31051
31597
|
/**
|
|
31052
31598
|
* * Field Name: ItemID
|
|
31053
|
-
* * Display Name: Item
|
|
31599
|
+
* * Display Name: Item
|
|
31054
31600
|
* * SQL Data Type: uniqueidentifier
|
|
31055
31601
|
* * Related Entity/Foreign Key: MJ: Content Items (vwContentItems.ID)
|
|
31056
31602
|
*/
|
|
@@ -31088,11 +31634,26 @@ export declare class MJContentItemTagEntity extends BaseEntity<MJContentItemTagE
|
|
|
31088
31634
|
get Weight(): number;
|
|
31089
31635
|
set Weight(value: number);
|
|
31090
31636
|
/**
|
|
31637
|
+
* * Field Name: TagID
|
|
31638
|
+
* * Display Name: Tag Reference
|
|
31639
|
+
* * SQL Data Type: uniqueidentifier
|
|
31640
|
+
* * Related Entity/Foreign Key: MJ: Tags (vwTags.ID)
|
|
31641
|
+
* * Description: Optional link to the formal MJ Tag taxonomy. When set, this free-text tag has been matched (via semantic similarity or exact match) to a curated Tag record. NULL means the tag is unmatched free text only.
|
|
31642
|
+
*/
|
|
31643
|
+
get TagID(): string | null;
|
|
31644
|
+
set TagID(value: string | null);
|
|
31645
|
+
/**
|
|
31091
31646
|
* * Field Name: Item
|
|
31092
|
-
* * Display Name: Item
|
|
31647
|
+
* * Display Name: Item Name
|
|
31093
31648
|
* * SQL Data Type: nvarchar(250)
|
|
31094
31649
|
*/
|
|
31095
31650
|
get Item(): string | null;
|
|
31651
|
+
/**
|
|
31652
|
+
* * Field Name: Tag_Virtual
|
|
31653
|
+
* * Display Name: Tag (Virtual)
|
|
31654
|
+
* * SQL Data Type: nvarchar(255)
|
|
31655
|
+
*/
|
|
31656
|
+
get Tag_Virtual(): string | null;
|
|
31096
31657
|
}
|
|
31097
31658
|
/**
|
|
31098
31659
|
* MJ: Content Items - strongly typed entity sub-class
|
|
@@ -31211,6 +31772,72 @@ export declare class MJContentItemEntity extends BaseEntity<MJContentItemEntityT
|
|
|
31211
31772
|
*/
|
|
31212
31773
|
get __mj_UpdatedAt(): Date;
|
|
31213
31774
|
/**
|
|
31775
|
+
* * Field Name: EntityRecordDocumentID
|
|
31776
|
+
* * Display Name: Entity Record Document ID
|
|
31777
|
+
* * SQL Data Type: uniqueidentifier
|
|
31778
|
+
* * Related Entity/Foreign Key: MJ: Entity Record Documents (vwEntityRecordDocuments.ID)
|
|
31779
|
+
* * Description: For entity-sourced content items, links to the Entity Record Document snapshot that was rendered for this item. Provides traceability back to the source entity record via ERD.EntityID + ERD.RecordID. NULL for non-entity sources.
|
|
31780
|
+
*/
|
|
31781
|
+
get EntityRecordDocumentID(): string | null;
|
|
31782
|
+
set EntityRecordDocumentID(value: string | null);
|
|
31783
|
+
/**
|
|
31784
|
+
* * Field Name: EmbeddingStatus
|
|
31785
|
+
* * Display Name: Embedding Status
|
|
31786
|
+
* * SQL Data Type: nvarchar(20)
|
|
31787
|
+
* * Default Value: Pending
|
|
31788
|
+
* * Value List Type: List
|
|
31789
|
+
* * Possible Values
|
|
31790
|
+
* * Complete
|
|
31791
|
+
* * Failed
|
|
31792
|
+
* * Pending
|
|
31793
|
+
* * Processing
|
|
31794
|
+
* * Skipped
|
|
31795
|
+
* * Description: Vectorization status: Pending (not yet embedded), Processing (currently being embedded), Complete (vector stored), Failed (embedding error), Skipped (excluded from vectorization).
|
|
31796
|
+
*/
|
|
31797
|
+
get EmbeddingStatus(): 'Complete' | 'Failed' | 'Pending' | 'Processing' | 'Skipped';
|
|
31798
|
+
set EmbeddingStatus(value: 'Complete' | 'Failed' | 'Pending' | 'Processing' | 'Skipped');
|
|
31799
|
+
/**
|
|
31800
|
+
* * Field Name: LastEmbeddedAt
|
|
31801
|
+
* * Display Name: Last Embedded At
|
|
31802
|
+
* * SQL Data Type: datetimeoffset
|
|
31803
|
+
* * Description: Timestamp of the most recent successful embedding for this content item.
|
|
31804
|
+
*/
|
|
31805
|
+
get LastEmbeddedAt(): Date | null;
|
|
31806
|
+
set LastEmbeddedAt(value: Date | null);
|
|
31807
|
+
/**
|
|
31808
|
+
* * Field Name: EmbeddingModelID
|
|
31809
|
+
* * Display Name: Embedding Model ID
|
|
31810
|
+
* * SQL Data Type: uniqueidentifier
|
|
31811
|
+
* * Related Entity/Foreign Key: MJ: AI Models (vwAIModels.ID)
|
|
31812
|
+
* * Description: The AI model used to generate the most recent embedding for this content item.
|
|
31813
|
+
*/
|
|
31814
|
+
get EmbeddingModelID(): string | null;
|
|
31815
|
+
set EmbeddingModelID(value: string | null);
|
|
31816
|
+
/**
|
|
31817
|
+
* * Field Name: TaggingStatus
|
|
31818
|
+
* * Display Name: Tagging Status
|
|
31819
|
+
* * SQL Data Type: nvarchar(20)
|
|
31820
|
+
* * Default Value: Pending
|
|
31821
|
+
* * Value List Type: List
|
|
31822
|
+
* * Possible Values
|
|
31823
|
+
* * Complete
|
|
31824
|
+
* * Failed
|
|
31825
|
+
* * Pending
|
|
31826
|
+
* * Processing
|
|
31827
|
+
* * Skipped
|
|
31828
|
+
* * Description: Autotagging status: Pending (not yet tagged), Processing (LLM is generating tags), Complete (tags assigned), Failed (LLM error), Skipped (excluded from tagging).
|
|
31829
|
+
*/
|
|
31830
|
+
get TaggingStatus(): 'Complete' | 'Failed' | 'Pending' | 'Processing' | 'Skipped';
|
|
31831
|
+
set TaggingStatus(value: 'Complete' | 'Failed' | 'Pending' | 'Processing' | 'Skipped');
|
|
31832
|
+
/**
|
|
31833
|
+
* * Field Name: LastTaggedAt
|
|
31834
|
+
* * Display Name: Last Tagged At
|
|
31835
|
+
* * SQL Data Type: datetimeoffset
|
|
31836
|
+
* * Description: Timestamp of the most recent successful autotagging run for this content item.
|
|
31837
|
+
*/
|
|
31838
|
+
get LastTaggedAt(): Date | null;
|
|
31839
|
+
set LastTaggedAt(value: Date | null);
|
|
31840
|
+
/**
|
|
31214
31841
|
* * Field Name: ContentSource
|
|
31215
31842
|
* * Display Name: Content Source
|
|
31216
31843
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -31234,6 +31861,320 @@ export declare class MJContentItemEntity extends BaseEntity<MJContentItemEntityT
|
|
|
31234
31861
|
* * SQL Data Type: nvarchar(255)
|
|
31235
31862
|
*/
|
|
31236
31863
|
get ContentFileType(): string;
|
|
31864
|
+
/**
|
|
31865
|
+
* * Field Name: EntityRecordDocument
|
|
31866
|
+
* * Display Name: Entity Record Document
|
|
31867
|
+
* * SQL Data Type: nvarchar(450)
|
|
31868
|
+
*/
|
|
31869
|
+
get EntityRecordDocument(): string | null;
|
|
31870
|
+
/**
|
|
31871
|
+
* * Field Name: EmbeddingModel
|
|
31872
|
+
* * Display Name: Embedding Model
|
|
31873
|
+
* * SQL Data Type: nvarchar(50)
|
|
31874
|
+
*/
|
|
31875
|
+
get EmbeddingModel(): string | null;
|
|
31876
|
+
}
|
|
31877
|
+
/**
|
|
31878
|
+
* MJ: Content Process Run Details - strongly typed entity sub-class
|
|
31879
|
+
* * Schema: __mj
|
|
31880
|
+
* * Base Table: ContentProcessRunDetail
|
|
31881
|
+
* * Base View: vwContentProcessRunDetails
|
|
31882
|
+
* * @description Per-content-source tracking within a pipeline run. Each source processed during a ContentProcessRun gets one detail record with item counts, timing, token usage, and cost rollups.
|
|
31883
|
+
* * Primary Key: ID
|
|
31884
|
+
* @extends {BaseEntity}
|
|
31885
|
+
* @class
|
|
31886
|
+
* @public
|
|
31887
|
+
*/
|
|
31888
|
+
export declare class MJContentProcessRunDetailEntity extends BaseEntity<MJContentProcessRunDetailEntityType> {
|
|
31889
|
+
/**
|
|
31890
|
+
* Loads the MJ: Content Process Run Details record from the database
|
|
31891
|
+
* @param ID: string - primary key value to load the MJ: Content Process Run Details record.
|
|
31892
|
+
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
31893
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
31894
|
+
* @public
|
|
31895
|
+
* @async
|
|
31896
|
+
* @memberof MJContentProcessRunDetailEntity
|
|
31897
|
+
* @method
|
|
31898
|
+
* @override
|
|
31899
|
+
*/
|
|
31900
|
+
Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
|
|
31901
|
+
/**
|
|
31902
|
+
* * Field Name: ID
|
|
31903
|
+
* * Display Name: ID
|
|
31904
|
+
* * SQL Data Type: uniqueidentifier
|
|
31905
|
+
* * Default Value: newsequentialid()
|
|
31906
|
+
*/
|
|
31907
|
+
get ID(): string;
|
|
31908
|
+
set ID(value: string);
|
|
31909
|
+
/**
|
|
31910
|
+
* * Field Name: ContentProcessRunID
|
|
31911
|
+
* * Display Name: Content Process Run
|
|
31912
|
+
* * SQL Data Type: uniqueidentifier
|
|
31913
|
+
* * Related Entity/Foreign Key: MJ: Content Process Runs (vwContentProcessRuns.ID)
|
|
31914
|
+
* * Description: The parent pipeline run this detail belongs to.
|
|
31915
|
+
*/
|
|
31916
|
+
get ContentProcessRunID(): string;
|
|
31917
|
+
set ContentProcessRunID(value: string);
|
|
31918
|
+
/**
|
|
31919
|
+
* * Field Name: ContentSourceID
|
|
31920
|
+
* * Display Name: Content Source
|
|
31921
|
+
* * SQL Data Type: uniqueidentifier
|
|
31922
|
+
* * Related Entity/Foreign Key: MJ: Content Sources (vwContentSources.ID)
|
|
31923
|
+
* * Description: The content source being processed in this detail record.
|
|
31924
|
+
*/
|
|
31925
|
+
get ContentSourceID(): string;
|
|
31926
|
+
set ContentSourceID(value: string);
|
|
31927
|
+
/**
|
|
31928
|
+
* * Field Name: ContentSourceTypeID
|
|
31929
|
+
* * Display Name: Content Source Type
|
|
31930
|
+
* * SQL Data Type: uniqueidentifier
|
|
31931
|
+
* * Related Entity/Foreign Key: MJ: Content Source Types (vwContentSourceTypes.ID)
|
|
31932
|
+
* * Description: The type of content source (RSS Feed, Entity, Website, Cloud Storage, etc.).
|
|
31933
|
+
*/
|
|
31934
|
+
get ContentSourceTypeID(): string;
|
|
31935
|
+
set ContentSourceTypeID(value: string);
|
|
31936
|
+
/**
|
|
31937
|
+
* * Field Name: Status
|
|
31938
|
+
* * Display Name: Status
|
|
31939
|
+
* * SQL Data Type: nvarchar(20)
|
|
31940
|
+
* * Default Value: Pending
|
|
31941
|
+
* * Description: Processing status: Pending, Running, Completed, Failed, or Skipped.
|
|
31942
|
+
*/
|
|
31943
|
+
get Status(): string;
|
|
31944
|
+
set Status(value: string);
|
|
31945
|
+
/**
|
|
31946
|
+
* * Field Name: ItemsProcessed
|
|
31947
|
+
* * Display Name: Items Processed
|
|
31948
|
+
* * SQL Data Type: int
|
|
31949
|
+
* * Default Value: 0
|
|
31950
|
+
* * Description: Total content items processed for this source during the run.
|
|
31951
|
+
*/
|
|
31952
|
+
get ItemsProcessed(): number;
|
|
31953
|
+
set ItemsProcessed(value: number);
|
|
31954
|
+
/**
|
|
31955
|
+
* * Field Name: ItemsTagged
|
|
31956
|
+
* * Display Name: Items Tagged
|
|
31957
|
+
* * SQL Data Type: int
|
|
31958
|
+
* * Default Value: 0
|
|
31959
|
+
* * Description: Number of content items successfully tagged by the LLM.
|
|
31960
|
+
*/
|
|
31961
|
+
get ItemsTagged(): number;
|
|
31962
|
+
set ItemsTagged(value: number);
|
|
31963
|
+
/**
|
|
31964
|
+
* * Field Name: ItemsVectorized
|
|
31965
|
+
* * Display Name: Items Vectorized
|
|
31966
|
+
* * SQL Data Type: int
|
|
31967
|
+
* * Default Value: 0
|
|
31968
|
+
* * Description: Number of content items successfully embedded and upserted to the vector database.
|
|
31969
|
+
*/
|
|
31970
|
+
get ItemsVectorized(): number;
|
|
31971
|
+
set ItemsVectorized(value: number);
|
|
31972
|
+
/**
|
|
31973
|
+
* * Field Name: TagsCreated
|
|
31974
|
+
* * Display Name: Tags Created
|
|
31975
|
+
* * SQL Data Type: int
|
|
31976
|
+
* * Default Value: 0
|
|
31977
|
+
* * Description: Number of new ContentItemTag records created during LLM tagging.
|
|
31978
|
+
*/
|
|
31979
|
+
get TagsCreated(): number;
|
|
31980
|
+
set TagsCreated(value: number);
|
|
31981
|
+
/**
|
|
31982
|
+
* * Field Name: ErrorCount
|
|
31983
|
+
* * Display Name: Error Count
|
|
31984
|
+
* * SQL Data Type: int
|
|
31985
|
+
* * Default Value: 0
|
|
31986
|
+
* * Description: Number of errors encountered while processing this source.
|
|
31987
|
+
*/
|
|
31988
|
+
get ErrorCount(): number;
|
|
31989
|
+
set ErrorCount(value: number);
|
|
31990
|
+
/**
|
|
31991
|
+
* * Field Name: StartTime
|
|
31992
|
+
* * Display Name: Start Time
|
|
31993
|
+
* * SQL Data Type: datetimeoffset
|
|
31994
|
+
* * Description: When processing started for this source within the pipeline run.
|
|
31995
|
+
*/
|
|
31996
|
+
get StartTime(): Date | null;
|
|
31997
|
+
set StartTime(value: Date | null);
|
|
31998
|
+
/**
|
|
31999
|
+
* * Field Name: EndTime
|
|
32000
|
+
* * Display Name: End Time
|
|
32001
|
+
* * SQL Data Type: datetimeoffset
|
|
32002
|
+
* * Description: When processing completed for this source within the pipeline run.
|
|
32003
|
+
*/
|
|
32004
|
+
get EndTime(): Date | null;
|
|
32005
|
+
set EndTime(value: Date | null);
|
|
32006
|
+
/**
|
|
32007
|
+
* * Field Name: TotalTokensUsed
|
|
32008
|
+
* * Display Name: Total Tokens Used
|
|
32009
|
+
* * SQL Data Type: int
|
|
32010
|
+
* * Default Value: 0
|
|
32011
|
+
* * Description: Rollup of all tokens used across LLM tagging and embedding calls for this source. Computed from linked AIPromptRun records via the ContentProcessRunPromptRun junction table.
|
|
32012
|
+
*/
|
|
32013
|
+
get TotalTokensUsed(): number;
|
|
32014
|
+
set TotalTokensUsed(value: number);
|
|
32015
|
+
/**
|
|
32016
|
+
* * Field Name: TotalCost
|
|
32017
|
+
* * Display Name: Total Cost
|
|
32018
|
+
* * SQL Data Type: decimal(18, 6)
|
|
32019
|
+
* * Default Value: 0
|
|
32020
|
+
* * Description: Rollup of all costs across LLM tagging and embedding calls for this source. Computed from linked AIPromptRun records via the ContentProcessRunPromptRun junction table.
|
|
32021
|
+
*/
|
|
32022
|
+
get TotalCost(): number;
|
|
32023
|
+
set TotalCost(value: number);
|
|
32024
|
+
/**
|
|
32025
|
+
* * Field Name: __mj_CreatedAt
|
|
32026
|
+
* * Display Name: Created At
|
|
32027
|
+
* * SQL Data Type: datetimeoffset
|
|
32028
|
+
* * Default Value: getutcdate()
|
|
32029
|
+
*/
|
|
32030
|
+
get __mj_CreatedAt(): Date;
|
|
32031
|
+
/**
|
|
32032
|
+
* * Field Name: __mj_UpdatedAt
|
|
32033
|
+
* * Display Name: Updated At
|
|
32034
|
+
* * SQL Data Type: datetimeoffset
|
|
32035
|
+
* * Default Value: getutcdate()
|
|
32036
|
+
*/
|
|
32037
|
+
get __mj_UpdatedAt(): Date;
|
|
32038
|
+
/**
|
|
32039
|
+
* * Field Name: ContentProcessRun
|
|
32040
|
+
* * Display Name: Content Process Run Name
|
|
32041
|
+
* * SQL Data Type: nvarchar(255)
|
|
32042
|
+
*/
|
|
32043
|
+
get ContentProcessRun(): string | null;
|
|
32044
|
+
/**
|
|
32045
|
+
* * Field Name: ContentSource
|
|
32046
|
+
* * Display Name: Content Source Name
|
|
32047
|
+
* * SQL Data Type: nvarchar(255)
|
|
32048
|
+
*/
|
|
32049
|
+
get ContentSource(): string | null;
|
|
32050
|
+
/**
|
|
32051
|
+
* * Field Name: ContentSourceType
|
|
32052
|
+
* * Display Name: Source Type Category
|
|
32053
|
+
* * SQL Data Type: nvarchar(255)
|
|
32054
|
+
*/
|
|
32055
|
+
get ContentSourceType(): string;
|
|
32056
|
+
}
|
|
32057
|
+
/**
|
|
32058
|
+
* MJ: Content Process Run Prompt Runs - strongly typed entity sub-class
|
|
32059
|
+
* * Schema: __mj
|
|
32060
|
+
* * Base Table: ContentProcessRunPromptRun
|
|
32061
|
+
* * Base View: vwContentProcessRunPromptRuns
|
|
32062
|
+
* * @description Links ContentProcessRunDetail records to their associated AIPromptRun records. Each LLM tagging call and embedding call creates an AIPromptRun, and this junction table provides the FK relationship for cost/token analytics.
|
|
32063
|
+
* * Primary Key: ID
|
|
32064
|
+
* @extends {BaseEntity}
|
|
32065
|
+
* @class
|
|
32066
|
+
* @public
|
|
32067
|
+
*/
|
|
32068
|
+
export declare class MJContentProcessRunPromptRunEntity extends BaseEntity<MJContentProcessRunPromptRunEntityType> {
|
|
32069
|
+
/**
|
|
32070
|
+
* Loads the MJ: Content Process Run Prompt Runs record from the database
|
|
32071
|
+
* @param ID: string - primary key value to load the MJ: Content Process Run Prompt Runs record.
|
|
32072
|
+
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
32073
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
32074
|
+
* @public
|
|
32075
|
+
* @async
|
|
32076
|
+
* @memberof MJContentProcessRunPromptRunEntity
|
|
32077
|
+
* @method
|
|
32078
|
+
* @override
|
|
32079
|
+
*/
|
|
32080
|
+
Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
|
|
32081
|
+
/**
|
|
32082
|
+
* * Field Name: ID
|
|
32083
|
+
* * Display Name: ID
|
|
32084
|
+
* * SQL Data Type: uniqueidentifier
|
|
32085
|
+
* * Default Value: newsequentialid()
|
|
32086
|
+
*/
|
|
32087
|
+
get ID(): string;
|
|
32088
|
+
set ID(value: string);
|
|
32089
|
+
/**
|
|
32090
|
+
* * Field Name: ContentProcessRunDetailID
|
|
32091
|
+
* * Display Name: Content Process Run Detail
|
|
32092
|
+
* * SQL Data Type: uniqueidentifier
|
|
32093
|
+
* * Related Entity/Foreign Key: MJ: Content Process Run Details (vwContentProcessRunDetails.ID)
|
|
32094
|
+
* * Description: The content process run detail record this prompt run is associated with.
|
|
32095
|
+
*/
|
|
32096
|
+
get ContentProcessRunDetailID(): string;
|
|
32097
|
+
set ContentProcessRunDetailID(value: string);
|
|
32098
|
+
/**
|
|
32099
|
+
* * Field Name: AIPromptRunID
|
|
32100
|
+
* * Display Name: AI Prompt Run
|
|
32101
|
+
* * SQL Data Type: uniqueidentifier
|
|
32102
|
+
* * Related Entity/Foreign Key: MJ: AI Prompt Runs (vwAIPromptRuns.ID)
|
|
32103
|
+
* * Description: The AI prompt run record containing token usage, cost, model, vendor, and execution details for this call.
|
|
32104
|
+
*/
|
|
32105
|
+
get AIPromptRunID(): string;
|
|
32106
|
+
set AIPromptRunID(value: string);
|
|
32107
|
+
/**
|
|
32108
|
+
* * Field Name: RunType
|
|
32109
|
+
* * Display Name: Run Type
|
|
32110
|
+
* * SQL Data Type: nvarchar(20)
|
|
32111
|
+
* * Value List Type: List
|
|
32112
|
+
* * Possible Values
|
|
32113
|
+
* * Embed
|
|
32114
|
+
* * Tag
|
|
32115
|
+
* * Description: Whether this AIPromptRun was for LLM tagging (Tag) or text embedding (Embed).
|
|
32116
|
+
*/
|
|
32117
|
+
get RunType(): 'Embed' | 'Tag';
|
|
32118
|
+
set RunType(value: 'Embed' | 'Tag');
|
|
32119
|
+
/**
|
|
32120
|
+
* * Field Name: __mj_CreatedAt
|
|
32121
|
+
* * Display Name: Created At
|
|
32122
|
+
* * SQL Data Type: datetimeoffset
|
|
32123
|
+
* * Default Value: getutcdate()
|
|
32124
|
+
*/
|
|
32125
|
+
get __mj_CreatedAt(): Date;
|
|
32126
|
+
/**
|
|
32127
|
+
* * Field Name: __mj_UpdatedAt
|
|
32128
|
+
* * Display Name: Updated At
|
|
32129
|
+
* * SQL Data Type: datetimeoffset
|
|
32130
|
+
* * Default Value: getutcdate()
|
|
32131
|
+
*/
|
|
32132
|
+
get __mj_UpdatedAt(): Date;
|
|
32133
|
+
/**
|
|
32134
|
+
* * Field Name: AIPromptRun
|
|
32135
|
+
* * Display Name: Prompt Run Label
|
|
32136
|
+
* * SQL Data Type: nvarchar(255)
|
|
32137
|
+
*/
|
|
32138
|
+
get AIPromptRun(): string | null;
|
|
32139
|
+
}
|
|
32140
|
+
/** Pipeline configuration stored on ContentProcessRun.Configuration.
|
|
32141
|
+
* Controls batch size, rate limiting, error thresholds, and duplicate detection. */
|
|
32142
|
+
export interface MJContentProcessRunEntity_IContentProcessRunConfiguration {
|
|
32143
|
+
/** Batch processing settings */
|
|
32144
|
+
Pipeline?: {
|
|
32145
|
+
/** Number of content items per batch. Default: 100 */
|
|
32146
|
+
BatchSize?: number;
|
|
32147
|
+
/** Maximum concurrent batches. Default: 1 */
|
|
32148
|
+
MaxConcurrentBatches?: number;
|
|
32149
|
+
/** Delay between batches in milliseconds. Default: 200 */
|
|
32150
|
+
DelayBetweenBatchesMs?: number;
|
|
32151
|
+
/** If true, resume from the last completed batch on restart. Default: true */
|
|
32152
|
+
ResumeFromLastBatch?: boolean;
|
|
32153
|
+
/** Error rate percentage that triggers the circuit breaker (0-100). Default: 20 */
|
|
32154
|
+
ErrorThresholdPercent?: number;
|
|
32155
|
+
};
|
|
32156
|
+
/** API rate limiting per provider */
|
|
32157
|
+
RateLimits?: {
|
|
32158
|
+
/** LLM (tagging) rate limits */
|
|
32159
|
+
LLM?: {
|
|
32160
|
+
/** Maximum LLM requests per minute */
|
|
32161
|
+
RequestsPerMinute?: number;
|
|
32162
|
+
/** Maximum LLM tokens per minute */
|
|
32163
|
+
TokensPerMinute?: number;
|
|
32164
|
+
};
|
|
32165
|
+
/** Embedding rate limits */
|
|
32166
|
+
Embedding?: {
|
|
32167
|
+
/** Maximum embedding requests per minute */
|
|
32168
|
+
RequestsPerMinute?: number;
|
|
32169
|
+
/** Maximum embedding tokens per minute */
|
|
32170
|
+
TokensPerMinute?: number;
|
|
32171
|
+
};
|
|
32172
|
+
/** Vector database rate limits */
|
|
32173
|
+
VectorDB?: {
|
|
32174
|
+
/** Maximum vector DB requests per minute */
|
|
32175
|
+
RequestsPerMinute?: number;
|
|
32176
|
+
};
|
|
32177
|
+
};
|
|
31237
32178
|
}
|
|
31238
32179
|
/**
|
|
31239
32180
|
* MJ: Content Process Runs - strongly typed entity sub-class
|
|
@@ -31321,11 +32262,95 @@ export declare class MJContentProcessRunEntity extends BaseEntity<MJContentProce
|
|
|
31321
32262
|
*/
|
|
31322
32263
|
get __mj_UpdatedAt(): Date;
|
|
31323
32264
|
/**
|
|
32265
|
+
* * Field Name: StartedByUserID
|
|
32266
|
+
* * Display Name: Started By User ID
|
|
32267
|
+
* * SQL Data Type: uniqueidentifier
|
|
32268
|
+
* * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
|
|
32269
|
+
* * Description: The user who triggered this pipeline run. NULL for system-initiated runs.
|
|
32270
|
+
*/
|
|
32271
|
+
get StartedByUserID(): string | null;
|
|
32272
|
+
set StartedByUserID(value: string | null);
|
|
32273
|
+
/**
|
|
32274
|
+
* * Field Name: TotalItemCount
|
|
32275
|
+
* * Display Name: Total Item Count
|
|
32276
|
+
* * SQL Data Type: int
|
|
32277
|
+
* * Description: Total number of content items to process in this run. Used for progress percentage calculation.
|
|
32278
|
+
*/
|
|
32279
|
+
get TotalItemCount(): number | null;
|
|
32280
|
+
set TotalItemCount(value: number | null);
|
|
32281
|
+
/**
|
|
32282
|
+
* * Field Name: LastProcessedOffset
|
|
32283
|
+
* * Display Name: Last Processed Offset
|
|
32284
|
+
* * SQL Data Type: int
|
|
32285
|
+
* * Default Value: 0
|
|
32286
|
+
* * Description: StartRow offset of the last successfully completed batch. Used for resume-from-crash: next batch starts at this offset. Reset to 0 on new runs.
|
|
32287
|
+
*/
|
|
32288
|
+
get LastProcessedOffset(): number | null;
|
|
32289
|
+
set LastProcessedOffset(value: number | null);
|
|
32290
|
+
/**
|
|
32291
|
+
* * Field Name: BatchSize
|
|
32292
|
+
* * Display Name: Batch Size
|
|
32293
|
+
* * SQL Data Type: int
|
|
32294
|
+
* * Default Value: 100
|
|
32295
|
+
* * Description: Number of content items processed per batch. Configurable per run, default 100.
|
|
32296
|
+
*/
|
|
32297
|
+
get BatchSize(): number | null;
|
|
32298
|
+
set BatchSize(value: number | null);
|
|
32299
|
+
/**
|
|
32300
|
+
* * Field Name: ErrorCount
|
|
32301
|
+
* * Display Name: Error Count
|
|
32302
|
+
* * SQL Data Type: int
|
|
32303
|
+
* * Default Value: 0
|
|
32304
|
+
* * Description: Running count of errors encountered during processing. Used by the circuit breaker to halt the pipeline if error rate exceeds the configured threshold.
|
|
32305
|
+
*/
|
|
32306
|
+
get ErrorCount(): number | null;
|
|
32307
|
+
set ErrorCount(value: number | null);
|
|
32308
|
+
/**
|
|
32309
|
+
* * Field Name: ErrorMessage
|
|
32310
|
+
* * Display Name: Error Message
|
|
32311
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
32312
|
+
* * Description: Error details if the run failed. Includes error messages, stack traces, or circuit breaker trigger reason.
|
|
32313
|
+
*/
|
|
32314
|
+
get ErrorMessage(): string | null;
|
|
32315
|
+
set ErrorMessage(value: string | null);
|
|
32316
|
+
/**
|
|
32317
|
+
* * Field Name: CancellationRequested
|
|
32318
|
+
* * Display Name: Cancellation Requested
|
|
32319
|
+
* * SQL Data Type: bit
|
|
32320
|
+
* * Default Value: 0
|
|
32321
|
+
* * Description: When set to 1, the pipeline stops after completing the current batch. Used for pause and cancel operations. The Status column reflects the final state (Paused or Cancelled).
|
|
32322
|
+
*/
|
|
32323
|
+
get CancellationRequested(): boolean;
|
|
32324
|
+
set CancellationRequested(value: boolean);
|
|
32325
|
+
/**
|
|
32326
|
+
* * Field Name: Configuration
|
|
32327
|
+
* * Display Name: Configuration
|
|
32328
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
32329
|
+
* * JSON Type: MJContentProcessRunEntity_IContentProcessRunConfiguration
|
|
32330
|
+
* * Description: JSON snapshot of the pipeline configuration used for this run. Conforms to the IContentProcessRunConfiguration interface. Includes batch size, rate limits, error thresholds, and duplicate detection settings.
|
|
32331
|
+
*/
|
|
32332
|
+
get Configuration(): string | null;
|
|
32333
|
+
set Configuration(value: string | null);
|
|
32334
|
+
private _ConfigurationObject_cached;
|
|
32335
|
+
private _ConfigurationObject_lastRaw;
|
|
32336
|
+
/**
|
|
32337
|
+
* Typed accessor for Configuration — returns parsed JSON as MJContentProcessRunEntity_IContentProcessRunConfiguration.
|
|
32338
|
+
* Uses lazy parsing with cache invalidation when the underlying raw value changes.
|
|
32339
|
+
*/
|
|
32340
|
+
get ConfigurationObject(): MJContentProcessRunEntity_IContentProcessRunConfiguration | null;
|
|
32341
|
+
set ConfigurationObject(value: MJContentProcessRunEntity_IContentProcessRunConfiguration | null);
|
|
32342
|
+
/**
|
|
31324
32343
|
* * Field Name: Source
|
|
31325
32344
|
* * Display Name: Source
|
|
31326
32345
|
* * SQL Data Type: nvarchar(255)
|
|
31327
32346
|
*/
|
|
31328
32347
|
get Source(): string | null;
|
|
32348
|
+
/**
|
|
32349
|
+
* * Field Name: StartedByUser
|
|
32350
|
+
* * Display Name: Started By User
|
|
32351
|
+
* * SQL Data Type: nvarchar(100)
|
|
32352
|
+
*/
|
|
32353
|
+
get StartedByUser(): string | null;
|
|
31329
32354
|
}
|
|
31330
32355
|
/**
|
|
31331
32356
|
* MJ: Content Source Params - strongly typed entity sub-class
|
|
@@ -31489,6 +32514,69 @@ export declare class MJContentSourceTypeParamEntity extends BaseEntity<MJContent
|
|
|
31489
32514
|
*/
|
|
31490
32515
|
get __mj_UpdatedAt(): Date;
|
|
31491
32516
|
}
|
|
32517
|
+
/**
|
|
32518
|
+
* Type-level configuration for a Content Source Type.
|
|
32519
|
+
*
|
|
32520
|
+
* Describes what fields/inputs are required when creating a content source
|
|
32521
|
+
* of this type. The UI reads this to dynamically render the appropriate
|
|
32522
|
+
* widgets (URL input, entity picker, storage provider selector, etc.)
|
|
32523
|
+
* without hardcoding source-type-specific logic.
|
|
32524
|
+
*
|
|
32525
|
+
* Each Content Source Type row (Entity, RSS Feed, Website, Cloud Storage,
|
|
32526
|
+
* Local File System) stores its own RequiredFields array describing what
|
|
32527
|
+
* the user needs to provide when configuring a source of that type.
|
|
32528
|
+
*/
|
|
32529
|
+
export interface MJContentSourceTypeEntity_IContentSourceTypeConfiguration {
|
|
32530
|
+
/** Fields required when creating a content source of this type */
|
|
32531
|
+
RequiredFields?: MJContentSourceTypeEntity_IContentSourceTypeField[];
|
|
32532
|
+
/** Whether this source type requires a Content Type selection. Default true. Entity sources set this to false. */
|
|
32533
|
+
RequiresContentType?: boolean;
|
|
32534
|
+
/** Whether this source type requires a File Type selection. Default true. Entity sources set this to false. */
|
|
32535
|
+
RequiresFileType?: boolean;
|
|
32536
|
+
}
|
|
32537
|
+
/**
|
|
32538
|
+
* Describes a single field/input that a content source of this type requires.
|
|
32539
|
+
* The UI renders the appropriate widget based on the Type property.
|
|
32540
|
+
*/
|
|
32541
|
+
export interface MJContentSourceTypeEntity_IContentSourceTypeField {
|
|
32542
|
+
/** Internal field key — stored in ContentSource.Configuration.SourceSpecificConfiguration */
|
|
32543
|
+
Key: string;
|
|
32544
|
+
/** Display label for the UI widget */
|
|
32545
|
+
Label: string;
|
|
32546
|
+
/**
|
|
32547
|
+
* Widget type to render:
|
|
32548
|
+
* - 'text': plain text input
|
|
32549
|
+
* - 'url': URL input with validation
|
|
32550
|
+
* - 'path': file/directory path input
|
|
32551
|
+
* - 'entity-picker': dropdown of MJ entities (filtered to those with entity documents)
|
|
32552
|
+
* - 'entity-doc-picker': dropdown of entity documents for the selected entity
|
|
32553
|
+
* - 'storage-provider-picker': dropdown of registered MJ Storage providers
|
|
32554
|
+
* - 'dropdown': generic dropdown with options from the Options array
|
|
32555
|
+
*/
|
|
32556
|
+
Type: 'text' | 'url' | 'path' | 'entity-picker' | 'entity-doc-picker' | 'storage-provider-picker' | 'dropdown';
|
|
32557
|
+
/** Help text shown below the widget */
|
|
32558
|
+
Description?: string;
|
|
32559
|
+
/** Whether this field must be filled before saving */
|
|
32560
|
+
Required?: boolean;
|
|
32561
|
+
/** Default value for the field */
|
|
32562
|
+
DefaultValue?: string;
|
|
32563
|
+
/** For 'dropdown' type: available options */
|
|
32564
|
+
Options?: MJContentSourceTypeEntity_IContentSourceTypeFieldOption[];
|
|
32565
|
+
/** For 'entity-doc-picker': only show if the selected entity has > 1 document */
|
|
32566
|
+
ShowOnlyIfMultiple?: boolean;
|
|
32567
|
+
/**
|
|
32568
|
+
* For dependent fields: the Key of the field this depends on.
|
|
32569
|
+
* E.g., entity-doc-picker depends on entity-picker's value.
|
|
32570
|
+
*/
|
|
32571
|
+
DependsOnField?: string;
|
|
32572
|
+
}
|
|
32573
|
+
/** A selectable option for dropdown-type fields */
|
|
32574
|
+
export interface MJContentSourceTypeEntity_IContentSourceTypeFieldOption {
|
|
32575
|
+
/** Display label */
|
|
32576
|
+
Label: string;
|
|
32577
|
+
/** Value stored in configuration */
|
|
32578
|
+
Value: string;
|
|
32579
|
+
}
|
|
31492
32580
|
/**
|
|
31493
32581
|
* MJ: Content Source Types - strongly typed entity sub-class
|
|
31494
32582
|
* * Schema: __mj
|
|
@@ -31549,6 +32637,66 @@ export declare class MJContentSourceTypeEntity extends BaseEntity<MJContentSourc
|
|
|
31549
32637
|
* * Default Value: getutcdate()
|
|
31550
32638
|
*/
|
|
31551
32639
|
get __mj_UpdatedAt(): Date;
|
|
32640
|
+
/**
|
|
32641
|
+
* * Field Name: DriverClass
|
|
32642
|
+
* * Display Name: Driver Class
|
|
32643
|
+
* * SQL Data Type: nvarchar(255)
|
|
32644
|
+
* * Description: The registered class name used by ClassFactory to instantiate the provider for this source type (e.g., AutotagLocalFileSystem, AutotagEntity). Must match a @RegisterClass key on a class extending AutotagBase.
|
|
32645
|
+
*/
|
|
32646
|
+
get DriverClass(): string | null;
|
|
32647
|
+
set DriverClass(value: string | null);
|
|
32648
|
+
/**
|
|
32649
|
+
* * Field Name: Configuration
|
|
32650
|
+
* * Display Name: Configuration
|
|
32651
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
32652
|
+
* * JSON Type: MJContentSourceTypeEntity_IContentSourceTypeConfiguration
|
|
32653
|
+
* * Description: JSON configuration blob for type-level settings. Conforms to the IContentSourceTypeConfiguration interface. Reserved for future type-wide settings shared by all sources of this type.
|
|
32654
|
+
*/
|
|
32655
|
+
get Configuration(): string | null;
|
|
32656
|
+
set Configuration(value: string | null);
|
|
32657
|
+
private _ConfigurationObject_cached;
|
|
32658
|
+
private _ConfigurationObject_lastRaw;
|
|
32659
|
+
/**
|
|
32660
|
+
* Typed accessor for Configuration — returns parsed JSON as MJContentSourceTypeEntity_IContentSourceTypeConfiguration.
|
|
32661
|
+
* Uses lazy parsing with cache invalidation when the underlying raw value changes.
|
|
32662
|
+
*/
|
|
32663
|
+
get ConfigurationObject(): MJContentSourceTypeEntity_IContentSourceTypeConfiguration | null;
|
|
32664
|
+
set ConfigurationObject(value: MJContentSourceTypeEntity_IContentSourceTypeConfiguration | null);
|
|
32665
|
+
}
|
|
32666
|
+
/**
|
|
32667
|
+
* Per-source configuration for the Content Classification pipeline.
|
|
32668
|
+
*
|
|
32669
|
+
* Settings here control how a single content source interacts with the tag taxonomy,
|
|
32670
|
+
* the vectorization engine, and source-type-specific parameters. Every property is
|
|
32671
|
+
* optional and falls back to a sensible default, so an empty `{}` configuration is valid.
|
|
32672
|
+
*
|
|
32673
|
+
* The SourceSpecificConfiguration sub-object holds type-specific settings whose shape
|
|
32674
|
+
* depends on the content source type (Entity, RSS, Website, Cloud Storage, etc.).
|
|
32675
|
+
* The keys match the RequiredFields defined on the parent ContentSourceType's Configuration.
|
|
32676
|
+
*/
|
|
32677
|
+
export interface MJContentSourceEntity_IContentSourceConfiguration {
|
|
32678
|
+
/** Tag taxonomy matching mode: constrained (only match within subtree), auto-grow (match or create within subtree), free-flow (match or create anywhere) */
|
|
32679
|
+
TagTaxonomyMode?: 'constrained' | 'auto-grow' | 'free-flow';
|
|
32680
|
+
/** Root Tag ID for constrained/auto-grow modes — limits taxonomy operations to this subtree */
|
|
32681
|
+
TagRootID?: string | null;
|
|
32682
|
+
/** Similarity threshold (0.0-1.0) for matching ContentItemTags to formal Tags. Default 0.9 */
|
|
32683
|
+
TagMatchThreshold?: number;
|
|
32684
|
+
/** Whether to share existing tag taxonomy with the LLM during autotagging. Default true */
|
|
32685
|
+
ShareTaxonomyWithLLM?: boolean;
|
|
32686
|
+
/** Enable vectorization for this source. Default true */
|
|
32687
|
+
EnableVectorization?: boolean;
|
|
32688
|
+
/**
|
|
32689
|
+
* Source-type-specific configuration values. The keys here correspond to the
|
|
32690
|
+
* RequiredFields[].Key values defined on the parent ContentSourceType's Configuration.
|
|
32691
|
+
*
|
|
32692
|
+
* Examples:
|
|
32693
|
+
* - Entity type: { EntityID: "uuid", EntityDocumentID: "uuid" }
|
|
32694
|
+
* - RSS Feed: { URL: "https://example.com/feed.xml" }
|
|
32695
|
+
* - Cloud Storage: { FileStorageProviderKey: "Azure Blob Storage", PathPrefix: "/documents" }
|
|
32696
|
+
* - Local File System: { Path: "/var/data/documents" }
|
|
32697
|
+
* - Website: { URL: "https://example.com", CrawlDepth: 2 }
|
|
32698
|
+
*/
|
|
32699
|
+
SourceSpecificConfiguration?: Record<string, unknown>;
|
|
31552
32700
|
}
|
|
31553
32701
|
/**
|
|
31554
32702
|
* MJ: Content Sources - strongly typed entity sub-class
|
|
@@ -31654,6 +32802,50 @@ export declare class MJContentSourceEntity extends BaseEntity<MJContentSourceEnt
|
|
|
31654
32802
|
get VectorIndexID(): string | null;
|
|
31655
32803
|
set VectorIndexID(value: string | null);
|
|
31656
32804
|
/**
|
|
32805
|
+
* * Field Name: Configuration
|
|
32806
|
+
* * Display Name: Configuration
|
|
32807
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
32808
|
+
* * JSON Type: MJContentSourceEntity_IContentSourceConfiguration
|
|
32809
|
+
* * Description: JSON configuration blob for source-instance settings. Conforms to the IContentSourceConfiguration interface. Includes tag taxonomy mode (constrained/auto-grow/free-flow), tag root ID, match threshold, LLM taxonomy sharing, and vectorization toggle.
|
|
32810
|
+
*/
|
|
32811
|
+
get Configuration(): string | null;
|
|
32812
|
+
set Configuration(value: string | null);
|
|
32813
|
+
private _ConfigurationObject_cached;
|
|
32814
|
+
private _ConfigurationObject_lastRaw;
|
|
32815
|
+
/**
|
|
32816
|
+
* Typed accessor for Configuration — returns parsed JSON as MJContentSourceEntity_IContentSourceConfiguration.
|
|
32817
|
+
* Uses lazy parsing with cache invalidation when the underlying raw value changes.
|
|
32818
|
+
*/
|
|
32819
|
+
get ConfigurationObject(): MJContentSourceEntity_IContentSourceConfiguration | null;
|
|
32820
|
+
set ConfigurationObject(value: MJContentSourceEntity_IContentSourceConfiguration | null);
|
|
32821
|
+
/**
|
|
32822
|
+
* * Field Name: EntityID
|
|
32823
|
+
* * Display Name: Entity
|
|
32824
|
+
* * SQL Data Type: uniqueidentifier
|
|
32825
|
+
* * Related Entity/Foreign Key: MJ: Entities (vwEntities.ID)
|
|
32826
|
+
* * Description: For Entity-type content sources, the MJ Entity to pull records from. NULL for non-entity sources (files, RSS, websites, etc.).
|
|
32827
|
+
*/
|
|
32828
|
+
get EntityID(): string | null;
|
|
32829
|
+
set EntityID(value: string | null);
|
|
32830
|
+
/**
|
|
32831
|
+
* * Field Name: EntityDocumentID
|
|
32832
|
+
* * Display Name: Entity Document
|
|
32833
|
+
* * SQL Data Type: uniqueidentifier
|
|
32834
|
+
* * Related Entity/Foreign Key: MJ: Entity Documents (vwEntityDocuments.ID)
|
|
32835
|
+
* * Description: For Entity-type content sources, the Entity Document template used to render entity records into text for autotagging. The template defines which fields to include, how to format them, and related record inclusion. NULL for non-entity sources.
|
|
32836
|
+
*/
|
|
32837
|
+
get EntityDocumentID(): string | null;
|
|
32838
|
+
set EntityDocumentID(value: string | null);
|
|
32839
|
+
/**
|
|
32840
|
+
* * Field Name: ScheduledActionID
|
|
32841
|
+
* * Display Name: Scheduled Action
|
|
32842
|
+
* * SQL Data Type: uniqueidentifier
|
|
32843
|
+
* * Related Entity/Foreign Key: MJ: Scheduled Actions (vwScheduledActions.ID)
|
|
32844
|
+
* * Description: Optional link to a MJ Scheduled Action that automatically runs the classification pipeline for this source on a cron schedule.
|
|
32845
|
+
*/
|
|
32846
|
+
get ScheduledActionID(): string | null;
|
|
32847
|
+
set ScheduledActionID(value: string | null);
|
|
32848
|
+
/**
|
|
31657
32849
|
* * Field Name: ContentType
|
|
31658
32850
|
* * Display Name: Content Type
|
|
31659
32851
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -31683,6 +32875,24 @@ export declare class MJContentSourceEntity extends BaseEntity<MJContentSourceEnt
|
|
|
31683
32875
|
* * SQL Data Type: nvarchar(255)
|
|
31684
32876
|
*/
|
|
31685
32877
|
get VectorIndex(): string | null;
|
|
32878
|
+
/**
|
|
32879
|
+
* * Field Name: Entity
|
|
32880
|
+
* * Display Name: Entity
|
|
32881
|
+
* * SQL Data Type: nvarchar(255)
|
|
32882
|
+
*/
|
|
32883
|
+
get Entity(): string | null;
|
|
32884
|
+
/**
|
|
32885
|
+
* * Field Name: EntityDocument
|
|
32886
|
+
* * Display Name: Entity Document
|
|
32887
|
+
* * SQL Data Type: nvarchar(250)
|
|
32888
|
+
*/
|
|
32889
|
+
get EntityDocument(): string | null;
|
|
32890
|
+
/**
|
|
32891
|
+
* * Field Name: ScheduledAction
|
|
32892
|
+
* * Display Name: Scheduled Action
|
|
32893
|
+
* * SQL Data Type: nvarchar(255)
|
|
32894
|
+
*/
|
|
32895
|
+
get ScheduledAction(): string | null;
|
|
31686
32896
|
}
|
|
31687
32897
|
/**
|
|
31688
32898
|
* MJ: Content Type Attributes - strongly typed entity sub-class
|
|
@@ -31761,6 +32971,20 @@ export declare class MJContentTypeAttributeEntity extends BaseEntity<MJContentTy
|
|
|
31761
32971
|
*/
|
|
31762
32972
|
get __mj_UpdatedAt(): Date;
|
|
31763
32973
|
}
|
|
32974
|
+
/**
|
|
32975
|
+
* Content-type-level defaults for the autotagging and vectorization pipeline.
|
|
32976
|
+
*
|
|
32977
|
+
* Content Types classify the kind of content being processed (e.g. "Document", "Email",
|
|
32978
|
+
* "Web Page"). Settings defined here act as defaults for every content source that
|
|
32979
|
+
* produces this type of content. Individual sources can override these defaults via
|
|
32980
|
+
* their own {@link IContentSourceConfiguration}.
|
|
32981
|
+
*/
|
|
32982
|
+
export interface MJContentTypeEntity_IContentTypeConfiguration {
|
|
32983
|
+
/** Whether to share tag taxonomy with LLM by default for all sources of this type. Can be overridden per source. Default true */
|
|
32984
|
+
ShareTaxonomyWithLLM?: boolean;
|
|
32985
|
+
/** Default tag taxonomy mode for sources of this type. Can be overridden per source */
|
|
32986
|
+
DefaultTagTaxonomyMode?: 'constrained' | 'auto-grow' | 'free-flow';
|
|
32987
|
+
}
|
|
31764
32988
|
/**
|
|
31765
32989
|
* MJ: Content Types - strongly typed entity sub-class
|
|
31766
32990
|
* * Schema: __mj
|
|
@@ -31864,6 +33088,23 @@ export declare class MJContentTypeEntity extends BaseEntity<MJContentTypeEntityT
|
|
|
31864
33088
|
get VectorIndexID(): string | null;
|
|
31865
33089
|
set VectorIndexID(value: string | null);
|
|
31866
33090
|
/**
|
|
33091
|
+
* * Field Name: Configuration
|
|
33092
|
+
* * Display Name: Configuration
|
|
33093
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
33094
|
+
* * JSON Type: MJContentTypeEntity_IContentTypeConfiguration
|
|
33095
|
+
* * Description: JSON configuration blob for content-type-level settings. Conforms to the IContentTypeConfiguration interface. Reserved for future type-wide settings such as default tag taxonomy rules and processing options.
|
|
33096
|
+
*/
|
|
33097
|
+
get Configuration(): string | null;
|
|
33098
|
+
set Configuration(value: string | null);
|
|
33099
|
+
private _ConfigurationObject_cached;
|
|
33100
|
+
private _ConfigurationObject_lastRaw;
|
|
33101
|
+
/**
|
|
33102
|
+
* Typed accessor for Configuration — returns parsed JSON as MJContentTypeEntity_IContentTypeConfiguration.
|
|
33103
|
+
* Uses lazy parsing with cache invalidation when the underlying raw value changes.
|
|
33104
|
+
*/
|
|
33105
|
+
get ConfigurationObject(): MJContentTypeEntity_IContentTypeConfiguration | null;
|
|
33106
|
+
set ConfigurationObject(value: MJContentTypeEntity_IContentTypeConfiguration | null);
|
|
33107
|
+
/**
|
|
31867
33108
|
* * Field Name: AIModel
|
|
31868
33109
|
* * Display Name: AI Model Name
|
|
31869
33110
|
* * SQL Data Type: nvarchar(50)
|
|
@@ -35092,7 +36333,7 @@ export declare class MJDuplicateRunDetailEntity extends BaseEntity<MJDuplicateRu
|
|
|
35092
36333
|
set DuplicateRunID(value: string);
|
|
35093
36334
|
/**
|
|
35094
36335
|
* * Field Name: RecordID
|
|
35095
|
-
* * Display Name:
|
|
36336
|
+
* * Display Name: Record
|
|
35096
36337
|
* * SQL Data Type: nvarchar(500)
|
|
35097
36338
|
* * Description: The ID of the record being analyzed for duplicates.
|
|
35098
36339
|
*/
|
|
@@ -35175,6 +36416,22 @@ export declare class MJDuplicateRunDetailEntity extends BaseEntity<MJDuplicateRu
|
|
|
35175
36416
|
get RecordMetadata(): string | null;
|
|
35176
36417
|
set RecordMetadata(value: string | null);
|
|
35177
36418
|
/**
|
|
36419
|
+
* * Field Name: StartedAt
|
|
36420
|
+
* * Display Name: Started At
|
|
36421
|
+
* * SQL Data Type: datetimeoffset
|
|
36422
|
+
* * Description: When processing started for this specific record during duplicate detection.
|
|
36423
|
+
*/
|
|
36424
|
+
get StartedAt(): Date | null;
|
|
36425
|
+
set StartedAt(value: Date | null);
|
|
36426
|
+
/**
|
|
36427
|
+
* * Field Name: EndedAt
|
|
36428
|
+
* * Display Name: Ended At
|
|
36429
|
+
* * SQL Data Type: datetimeoffset
|
|
36430
|
+
* * Description: When processing completed for this specific record during duplicate detection.
|
|
36431
|
+
*/
|
|
36432
|
+
get EndedAt(): Date | null;
|
|
36433
|
+
set EndedAt(value: Date | null);
|
|
36434
|
+
/**
|
|
35178
36435
|
* * Field Name: DuplicateRun
|
|
35179
36436
|
* * Display Name: Run Name
|
|
35180
36437
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -35223,7 +36480,7 @@ export declare class MJDuplicateRunEntity extends BaseEntity<MJDuplicateRunEntit
|
|
|
35223
36480
|
set EntityID(value: string);
|
|
35224
36481
|
/**
|
|
35225
36482
|
* * Field Name: StartedByUserID
|
|
35226
|
-
* * Display Name: Started By
|
|
36483
|
+
* * Display Name: Started By
|
|
35227
36484
|
* * SQL Data Type: uniqueidentifier
|
|
35228
36485
|
* * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
|
|
35229
36486
|
*/
|
|
@@ -35277,7 +36534,7 @@ export declare class MJDuplicateRunEntity extends BaseEntity<MJDuplicateRunEntit
|
|
|
35277
36534
|
set ApprovalComments(value: string | null);
|
|
35278
36535
|
/**
|
|
35279
36536
|
* * Field Name: ApprovedByUserID
|
|
35280
|
-
* * Display Name: Approved By
|
|
36537
|
+
* * Display Name: Approved By
|
|
35281
36538
|
* * SQL Data Type: uniqueidentifier
|
|
35282
36539
|
* * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
|
|
35283
36540
|
*/
|
|
@@ -35321,8 +36578,52 @@ export declare class MJDuplicateRunEntity extends BaseEntity<MJDuplicateRunEntit
|
|
|
35321
36578
|
*/
|
|
35322
36579
|
get __mj_UpdatedAt(): Date;
|
|
35323
36580
|
/**
|
|
36581
|
+
* * Field Name: TotalItemCount
|
|
36582
|
+
* * Display Name: Total Item Count
|
|
36583
|
+
* * SQL Data Type: int
|
|
36584
|
+
* * Description: Total entity records to check for duplicates in this run.
|
|
36585
|
+
*/
|
|
36586
|
+
get TotalItemCount(): number | null;
|
|
36587
|
+
set TotalItemCount(value: number | null);
|
|
36588
|
+
/**
|
|
36589
|
+
* * Field Name: ProcessedItemCount
|
|
36590
|
+
* * Display Name: Processed Item Count
|
|
36591
|
+
* * SQL Data Type: int
|
|
36592
|
+
* * Default Value: 0
|
|
36593
|
+
* * Description: Number of records checked so far. Used for progress percentage.
|
|
36594
|
+
*/
|
|
36595
|
+
get ProcessedItemCount(): number | null;
|
|
36596
|
+
set ProcessedItemCount(value: number | null);
|
|
36597
|
+
/**
|
|
36598
|
+
* * Field Name: LastProcessedOffset
|
|
36599
|
+
* * Display Name: Last Processed Offset
|
|
36600
|
+
* * SQL Data Type: int
|
|
36601
|
+
* * Default Value: 0
|
|
36602
|
+
* * Description: Resume cursor for large-scale duplicate detection. Stores the offset of the last completed batch.
|
|
36603
|
+
*/
|
|
36604
|
+
get LastProcessedOffset(): number | null;
|
|
36605
|
+
set LastProcessedOffset(value: number | null);
|
|
36606
|
+
/**
|
|
36607
|
+
* * Field Name: BatchSize
|
|
36608
|
+
* * Display Name: Batch Size
|
|
36609
|
+
* * SQL Data Type: int
|
|
36610
|
+
* * Default Value: 100
|
|
36611
|
+
* * Description: Number of records processed per batch during duplicate detection.
|
|
36612
|
+
*/
|
|
36613
|
+
get BatchSize(): number | null;
|
|
36614
|
+
set BatchSize(value: number | null);
|
|
36615
|
+
/**
|
|
36616
|
+
* * Field Name: CancellationRequested
|
|
36617
|
+
* * Display Name: Cancellation Requested
|
|
36618
|
+
* * SQL Data Type: bit
|
|
36619
|
+
* * Default Value: 0
|
|
36620
|
+
* * Description: When set to 1, duplicate detection stops after the current batch. Used for pause/cancel.
|
|
36621
|
+
*/
|
|
36622
|
+
get CancellationRequested(): boolean;
|
|
36623
|
+
set CancellationRequested(value: boolean);
|
|
36624
|
+
/**
|
|
35324
36625
|
* * Field Name: Entity
|
|
35325
|
-
* * Display Name: Entity
|
|
36626
|
+
* * Display Name: Entity Name
|
|
35326
36627
|
* * SQL Data Type: nvarchar(255)
|
|
35327
36628
|
*/
|
|
35328
36629
|
get Entity(): string;
|
|
@@ -35334,7 +36635,7 @@ export declare class MJDuplicateRunEntity extends BaseEntity<MJDuplicateRunEntit
|
|
|
35334
36635
|
get StartedByUser(): string;
|
|
35335
36636
|
/**
|
|
35336
36637
|
* * Field Name: SourceList
|
|
35337
|
-
* * Display Name: Source List
|
|
36638
|
+
* * Display Name: Source List Name
|
|
35338
36639
|
* * SQL Data Type: nvarchar(100)
|
|
35339
36640
|
*/
|
|
35340
36641
|
get SourceList(): string | null;
|
|
@@ -41595,6 +42896,113 @@ export declare class MJIntegrationEntity extends BaseEntity<MJIntegrationEntityT
|
|
|
41595
42896
|
*/
|
|
41596
42897
|
get CredentialType(): string | null;
|
|
41597
42898
|
}
|
|
42899
|
+
/**
|
|
42900
|
+
* MJ: Knowledge Hub Saved Searches - strongly typed entity sub-class
|
|
42901
|
+
* * Schema: __mj
|
|
42902
|
+
* * Base Table: KnowledgeHubSavedSearch
|
|
42903
|
+
* * Base View: vwKnowledgeHubSavedSearches
|
|
42904
|
+
* * @description User-saved search queries for the Knowledge Hub. Stores query text, active filters (JSON), and score thresholds so searches can be recalled or run on a schedule.
|
|
42905
|
+
* * Primary Key: ID
|
|
42906
|
+
* @extends {BaseEntity}
|
|
42907
|
+
* @class
|
|
42908
|
+
* @public
|
|
42909
|
+
*/
|
|
42910
|
+
export declare class MJKnowledgeHubSavedSearchEntity extends BaseEntity<MJKnowledgeHubSavedSearchEntityType> {
|
|
42911
|
+
/**
|
|
42912
|
+
* Loads the MJ: Knowledge Hub Saved Searches record from the database
|
|
42913
|
+
* @param ID: string - primary key value to load the MJ: Knowledge Hub Saved Searches record.
|
|
42914
|
+
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
42915
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
42916
|
+
* @public
|
|
42917
|
+
* @async
|
|
42918
|
+
* @memberof MJKnowledgeHubSavedSearchEntity
|
|
42919
|
+
* @method
|
|
42920
|
+
* @override
|
|
42921
|
+
*/
|
|
42922
|
+
Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
|
|
42923
|
+
/**
|
|
42924
|
+
* * Field Name: ID
|
|
42925
|
+
* * Display Name: ID
|
|
42926
|
+
* * SQL Data Type: uniqueidentifier
|
|
42927
|
+
* * Default Value: newsequentialid()
|
|
42928
|
+
*/
|
|
42929
|
+
get ID(): string;
|
|
42930
|
+
set ID(value: string);
|
|
42931
|
+
/**
|
|
42932
|
+
* * Field Name: UserID
|
|
42933
|
+
* * Display Name: User
|
|
42934
|
+
* * SQL Data Type: uniqueidentifier
|
|
42935
|
+
* * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
|
|
42936
|
+
*/
|
|
42937
|
+
get UserID(): string;
|
|
42938
|
+
set UserID(value: string);
|
|
42939
|
+
/**
|
|
42940
|
+
* * Field Name: Name
|
|
42941
|
+
* * Display Name: Name
|
|
42942
|
+
* * SQL Data Type: nvarchar(255)
|
|
42943
|
+
*/
|
|
42944
|
+
get Name(): string;
|
|
42945
|
+
set Name(value: string);
|
|
42946
|
+
/**
|
|
42947
|
+
* * Field Name: Query
|
|
42948
|
+
* * Display Name: Query
|
|
42949
|
+
* * SQL Data Type: nvarchar(1000)
|
|
42950
|
+
*/
|
|
42951
|
+
get Query(): string;
|
|
42952
|
+
set Query(value: string);
|
|
42953
|
+
/**
|
|
42954
|
+
* * Field Name: Filters
|
|
42955
|
+
* * Display Name: Filters
|
|
42956
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
42957
|
+
* * Description: JSON object with active filter selections. Keys are filter categories (Entity, Tags), values are arrays of selected option values.
|
|
42958
|
+
*/
|
|
42959
|
+
get Filters(): string | null;
|
|
42960
|
+
set Filters(value: string | null);
|
|
42961
|
+
/**
|
|
42962
|
+
* * Field Name: MinScore
|
|
42963
|
+
* * Display Name: Minimum Score
|
|
42964
|
+
* * SQL Data Type: decimal(3, 2)
|
|
42965
|
+
*/
|
|
42966
|
+
get MinScore(): number | null;
|
|
42967
|
+
set MinScore(value: number | null);
|
|
42968
|
+
/**
|
|
42969
|
+
* * Field Name: MaxResults
|
|
42970
|
+
* * Display Name: Maximum Results
|
|
42971
|
+
* * SQL Data Type: int
|
|
42972
|
+
* * Default Value: 50
|
|
42973
|
+
*/
|
|
42974
|
+
get MaxResults(): number | null;
|
|
42975
|
+
set MaxResults(value: number | null);
|
|
42976
|
+
/**
|
|
42977
|
+
* * Field Name: NotifyOnNewResults
|
|
42978
|
+
* * Display Name: Notify On New Results
|
|
42979
|
+
* * SQL Data Type: bit
|
|
42980
|
+
* * Default Value: 0
|
|
42981
|
+
* * Description: When enabled, the system will notify the user when new results match this saved search (future capability).
|
|
42982
|
+
*/
|
|
42983
|
+
get NotifyOnNewResults(): boolean;
|
|
42984
|
+
set NotifyOnNewResults(value: boolean);
|
|
42985
|
+
/**
|
|
42986
|
+
* * Field Name: __mj_CreatedAt
|
|
42987
|
+
* * Display Name: Created At
|
|
42988
|
+
* * SQL Data Type: datetimeoffset
|
|
42989
|
+
* * Default Value: getutcdate()
|
|
42990
|
+
*/
|
|
42991
|
+
get __mj_CreatedAt(): Date;
|
|
42992
|
+
/**
|
|
42993
|
+
* * Field Name: __mj_UpdatedAt
|
|
42994
|
+
* * Display Name: Updated At
|
|
42995
|
+
* * SQL Data Type: datetimeoffset
|
|
42996
|
+
* * Default Value: getutcdate()
|
|
42997
|
+
*/
|
|
42998
|
+
get __mj_UpdatedAt(): Date;
|
|
42999
|
+
/**
|
|
43000
|
+
* * Field Name: User
|
|
43001
|
+
* * Display Name: User Name
|
|
43002
|
+
* * SQL Data Type: nvarchar(100)
|
|
43003
|
+
*/
|
|
43004
|
+
get User(): string;
|
|
43005
|
+
}
|
|
41598
43006
|
/**
|
|
41599
43007
|
* MJ: Libraries - strongly typed entity sub-class
|
|
41600
43008
|
* * Schema: __mj
|
|
@@ -49666,6 +51074,233 @@ export declare class MJSQLDialectEntity extends BaseEntity<MJSQLDialectEntityTyp
|
|
|
49666
51074
|
*/
|
|
49667
51075
|
get __mj_UpdatedAt(): Date;
|
|
49668
51076
|
}
|
|
51077
|
+
/**
|
|
51078
|
+
* MJ: Tag Audit Logs - strongly typed entity sub-class
|
|
51079
|
+
* * Schema: __mj
|
|
51080
|
+
* * Base Table: TagAuditLog
|
|
51081
|
+
* * Base View: vwTagAuditLogs
|
|
51082
|
+
* * @description Immutable audit trail for all tag taxonomy changes. Each row records a single action with before/after details in JSON.
|
|
51083
|
+
* * Primary Key: ID
|
|
51084
|
+
* @extends {BaseEntity}
|
|
51085
|
+
* @class
|
|
51086
|
+
* @public
|
|
51087
|
+
*/
|
|
51088
|
+
export declare class MJTagAuditLogEntity extends BaseEntity<MJTagAuditLogEntityType> {
|
|
51089
|
+
/**
|
|
51090
|
+
* Loads the MJ: Tag Audit Logs record from the database
|
|
51091
|
+
* @param ID: string - primary key value to load the MJ: Tag Audit Logs record.
|
|
51092
|
+
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
51093
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
51094
|
+
* @public
|
|
51095
|
+
* @async
|
|
51096
|
+
* @memberof MJTagAuditLogEntity
|
|
51097
|
+
* @method
|
|
51098
|
+
* @override
|
|
51099
|
+
*/
|
|
51100
|
+
Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
|
|
51101
|
+
/**
|
|
51102
|
+
* * Field Name: ID
|
|
51103
|
+
* * Display Name: ID
|
|
51104
|
+
* * SQL Data Type: uniqueidentifier
|
|
51105
|
+
* * Default Value: newsequentialid()
|
|
51106
|
+
*/
|
|
51107
|
+
get ID(): string;
|
|
51108
|
+
set ID(value: string);
|
|
51109
|
+
/**
|
|
51110
|
+
* * Field Name: TagID
|
|
51111
|
+
* * Display Name: Tag
|
|
51112
|
+
* * SQL Data Type: uniqueidentifier
|
|
51113
|
+
* * Related Entity/Foreign Key: MJ: Tags (vwTags.ID)
|
|
51114
|
+
* * Description: The tag that was acted upon.
|
|
51115
|
+
*/
|
|
51116
|
+
get TagID(): string;
|
|
51117
|
+
set TagID(value: string);
|
|
51118
|
+
/**
|
|
51119
|
+
* * Field Name: Action
|
|
51120
|
+
* * Display Name: Action
|
|
51121
|
+
* * SQL Data Type: nvarchar(30)
|
|
51122
|
+
* * Value List Type: List
|
|
51123
|
+
* * Possible Values
|
|
51124
|
+
* * Created
|
|
51125
|
+
* * Deleted
|
|
51126
|
+
* * Deprecated
|
|
51127
|
+
* * DescriptionChanged
|
|
51128
|
+
* * Merged
|
|
51129
|
+
* * Moved
|
|
51130
|
+
* * Reactivated
|
|
51131
|
+
* * Renamed
|
|
51132
|
+
* * Split
|
|
51133
|
+
* * Description: The type of action performed: Created, Renamed, Moved (parent changed), Merged (into RelatedTagID), Split (from RelatedTagID), Deprecated, Reactivated, Deleted, DescriptionChanged.
|
|
51134
|
+
*/
|
|
51135
|
+
get Action(): 'Created' | 'Deleted' | 'Deprecated' | 'DescriptionChanged' | 'Merged' | 'Moved' | 'Reactivated' | 'Renamed' | 'Split';
|
|
51136
|
+
set Action(value: 'Created' | 'Deleted' | 'Deprecated' | 'DescriptionChanged' | 'Merged' | 'Moved' | 'Reactivated' | 'Renamed' | 'Split');
|
|
51137
|
+
/**
|
|
51138
|
+
* * Field Name: Details
|
|
51139
|
+
* * Display Name: Action Details
|
|
51140
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
51141
|
+
* * Description: JSON object with action-specific details. For Renamed: {"OldName":"...","NewName":"..."}. For Moved: {"OldParentID":"...","NewParentID":"..."}. For Merged: {"ItemsMoved":42}.
|
|
51142
|
+
*/
|
|
51143
|
+
get Details(): string | null;
|
|
51144
|
+
set Details(value: string | null);
|
|
51145
|
+
/**
|
|
51146
|
+
* * Field Name: PerformedByUserID
|
|
51147
|
+
* * Display Name: Performed By User
|
|
51148
|
+
* * SQL Data Type: uniqueidentifier
|
|
51149
|
+
* * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
|
|
51150
|
+
* * Description: User who performed the action.
|
|
51151
|
+
*/
|
|
51152
|
+
get PerformedByUserID(): string;
|
|
51153
|
+
set PerformedByUserID(value: string);
|
|
51154
|
+
/**
|
|
51155
|
+
* * Field Name: RelatedTagID
|
|
51156
|
+
* * Display Name: Related Tag
|
|
51157
|
+
* * SQL Data Type: uniqueidentifier
|
|
51158
|
+
* * Related Entity/Foreign Key: MJ: Tags (vwTags.ID)
|
|
51159
|
+
* * Description: For Merged actions: the surviving tag. For Split actions: the source tag. NULL for other actions.
|
|
51160
|
+
*/
|
|
51161
|
+
get RelatedTagID(): string | null;
|
|
51162
|
+
set RelatedTagID(value: string | null);
|
|
51163
|
+
/**
|
|
51164
|
+
* * Field Name: __mj_CreatedAt
|
|
51165
|
+
* * Display Name: Created At
|
|
51166
|
+
* * SQL Data Type: datetimeoffset
|
|
51167
|
+
* * Default Value: getutcdate()
|
|
51168
|
+
*/
|
|
51169
|
+
get __mj_CreatedAt(): Date;
|
|
51170
|
+
/**
|
|
51171
|
+
* * Field Name: __mj_UpdatedAt
|
|
51172
|
+
* * Display Name: Updated At
|
|
51173
|
+
* * SQL Data Type: datetimeoffset
|
|
51174
|
+
* * Default Value: getutcdate()
|
|
51175
|
+
*/
|
|
51176
|
+
get __mj_UpdatedAt(): Date;
|
|
51177
|
+
/**
|
|
51178
|
+
* * Field Name: Tag
|
|
51179
|
+
* * Display Name: Tag Name
|
|
51180
|
+
* * SQL Data Type: nvarchar(255)
|
|
51181
|
+
*/
|
|
51182
|
+
get Tag(): string;
|
|
51183
|
+
/**
|
|
51184
|
+
* * Field Name: PerformedByUser
|
|
51185
|
+
* * Display Name: User Name
|
|
51186
|
+
* * SQL Data Type: nvarchar(100)
|
|
51187
|
+
*/
|
|
51188
|
+
get PerformedByUser(): string;
|
|
51189
|
+
/**
|
|
51190
|
+
* * Field Name: RelatedTag
|
|
51191
|
+
* * Display Name: Related Tag Name
|
|
51192
|
+
* * SQL Data Type: nvarchar(255)
|
|
51193
|
+
*/
|
|
51194
|
+
get RelatedTag(): string | null;
|
|
51195
|
+
}
|
|
51196
|
+
/**
|
|
51197
|
+
* MJ: Tag Co Occurrences - strongly typed entity sub-class
|
|
51198
|
+
* * Schema: __mj
|
|
51199
|
+
* * Base Table: TagCoOccurrence
|
|
51200
|
+
* * Base View: vwTagCoOccurrences
|
|
51201
|
+
* * @description Materialized co-occurrence counts for tag pairs. Records how many content items share both tags. Used for taxonomy health analysis, merge suggestions, and cross-entity intelligence. Recomputed periodically by the pipeline.
|
|
51202
|
+
* * Primary Key: ID
|
|
51203
|
+
* @extends {BaseEntity}
|
|
51204
|
+
* @class
|
|
51205
|
+
* @public
|
|
51206
|
+
*/
|
|
51207
|
+
export declare class MJTagCoOccurrenceEntity extends BaseEntity<MJTagCoOccurrenceEntityType> {
|
|
51208
|
+
/**
|
|
51209
|
+
* Loads the MJ: Tag Co Occurrences record from the database
|
|
51210
|
+
* @param ID: string - primary key value to load the MJ: Tag Co Occurrences record.
|
|
51211
|
+
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
51212
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
51213
|
+
* @public
|
|
51214
|
+
* @async
|
|
51215
|
+
* @memberof MJTagCoOccurrenceEntity
|
|
51216
|
+
* @method
|
|
51217
|
+
* @override
|
|
51218
|
+
*/
|
|
51219
|
+
Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
|
|
51220
|
+
/**
|
|
51221
|
+
* Validate() method override for MJ: Tag Co Occurrences entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
|
|
51222
|
+
* * Table-Level: Tag A must be ordered before Tag B to ensure that each pair of tags is stored consistently and to prevent duplicate entries for the same combination.
|
|
51223
|
+
* @public
|
|
51224
|
+
* @method
|
|
51225
|
+
* @override
|
|
51226
|
+
*/
|
|
51227
|
+
Validate(): ValidationResult;
|
|
51228
|
+
/**
|
|
51229
|
+
* Tag A must be ordered before Tag B to ensure that each pair of tags is stored consistently and to prevent duplicate entries for the same combination.
|
|
51230
|
+
* @param result - the ValidationResult object to add any errors or warnings to
|
|
51231
|
+
* @public
|
|
51232
|
+
* @method
|
|
51233
|
+
*/
|
|
51234
|
+
ValidateTagAIDLessThanTagBID(result: ValidationResult): void;
|
|
51235
|
+
/**
|
|
51236
|
+
* * Field Name: ID
|
|
51237
|
+
* * Display Name: ID
|
|
51238
|
+
* * SQL Data Type: uniqueidentifier
|
|
51239
|
+
* * Default Value: newsequentialid()
|
|
51240
|
+
*/
|
|
51241
|
+
get ID(): string;
|
|
51242
|
+
set ID(value: string);
|
|
51243
|
+
/**
|
|
51244
|
+
* * Field Name: TagAID
|
|
51245
|
+
* * Display Name: Tag A ID
|
|
51246
|
+
* * SQL Data Type: uniqueidentifier
|
|
51247
|
+
* * Related Entity/Foreign Key: MJ: Tags (vwTags.ID)
|
|
51248
|
+
* * Description: First tag in the canonical pair (TagAID < TagBID ensures each pair is stored exactly once).
|
|
51249
|
+
*/
|
|
51250
|
+
get TagAID(): string;
|
|
51251
|
+
set TagAID(value: string);
|
|
51252
|
+
/**
|
|
51253
|
+
* * Field Name: TagBID
|
|
51254
|
+
* * Display Name: Tag B ID
|
|
51255
|
+
* * SQL Data Type: uniqueidentifier
|
|
51256
|
+
* * Related Entity/Foreign Key: MJ: Tags (vwTags.ID)
|
|
51257
|
+
*/
|
|
51258
|
+
get TagBID(): string;
|
|
51259
|
+
set TagBID(value: string);
|
|
51260
|
+
/**
|
|
51261
|
+
* * Field Name: CoOccurrenceCount
|
|
51262
|
+
* * Display Name: Co-Occurrence Count
|
|
51263
|
+
* * SQL Data Type: int
|
|
51264
|
+
* * Default Value: 0
|
|
51265
|
+
* * Description: Number of content items (or entity records via TaggedItem) that are tagged with both TagA and TagB.
|
|
51266
|
+
*/
|
|
51267
|
+
get CoOccurrenceCount(): number;
|
|
51268
|
+
set CoOccurrenceCount(value: number);
|
|
51269
|
+
/**
|
|
51270
|
+
* * Field Name: LastComputedAt
|
|
51271
|
+
* * Display Name: Last Computed At
|
|
51272
|
+
* * SQL Data Type: datetimeoffset
|
|
51273
|
+
* * Default Value: getutcdate()
|
|
51274
|
+
*/
|
|
51275
|
+
get LastComputedAt(): Date;
|
|
51276
|
+
set LastComputedAt(value: Date);
|
|
51277
|
+
/**
|
|
51278
|
+
* * Field Name: __mj_CreatedAt
|
|
51279
|
+
* * Display Name: Created At
|
|
51280
|
+
* * SQL Data Type: datetimeoffset
|
|
51281
|
+
* * Default Value: getutcdate()
|
|
51282
|
+
*/
|
|
51283
|
+
get __mj_CreatedAt(): Date;
|
|
51284
|
+
/**
|
|
51285
|
+
* * Field Name: __mj_UpdatedAt
|
|
51286
|
+
* * Display Name: Updated At
|
|
51287
|
+
* * SQL Data Type: datetimeoffset
|
|
51288
|
+
* * Default Value: getutcdate()
|
|
51289
|
+
*/
|
|
51290
|
+
get __mj_UpdatedAt(): Date;
|
|
51291
|
+
/**
|
|
51292
|
+
* * Field Name: TagA
|
|
51293
|
+
* * Display Name: Tag A
|
|
51294
|
+
* * SQL Data Type: nvarchar(255)
|
|
51295
|
+
*/
|
|
51296
|
+
get TagA(): string;
|
|
51297
|
+
/**
|
|
51298
|
+
* * Field Name: TagB
|
|
51299
|
+
* * Display Name: Tag B
|
|
51300
|
+
* * SQL Data Type: nvarchar(255)
|
|
51301
|
+
*/
|
|
51302
|
+
get TagB(): string;
|
|
51303
|
+
}
|
|
49669
51304
|
/**
|
|
49670
51305
|
* MJ: Tagged Items - strongly typed entity sub-class
|
|
49671
51306
|
* * Schema: __mj
|
|
@@ -49737,6 +51372,15 @@ export declare class MJTaggedItemEntity extends BaseEntity<MJTaggedItemEntityTyp
|
|
|
49737
51372
|
*/
|
|
49738
51373
|
get __mj_UpdatedAt(): Date;
|
|
49739
51374
|
/**
|
|
51375
|
+
* * Field Name: Weight
|
|
51376
|
+
* * Display Name: Weight
|
|
51377
|
+
* * SQL Data Type: numeric(5, 4)
|
|
51378
|
+
* * Default Value: 1.0
|
|
51379
|
+
* * Description: Relevance weight of this tag association (0.0 to 1.0). 1.0 indicates the tag is highly relevant or was manually applied. Lower values indicate decreasing relevance as determined by LLM autotagging. Default 1.0 for manually applied tags.
|
|
51380
|
+
*/
|
|
51381
|
+
get Weight(): number;
|
|
51382
|
+
set Weight(value: number);
|
|
51383
|
+
/**
|
|
49740
51384
|
* * Field Name: Tag
|
|
49741
51385
|
* * Display Name: Tag
|
|
49742
51386
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -49790,7 +51434,7 @@ export declare class MJTagEntity extends BaseEntity<MJTagEntityType> {
|
|
|
49790
51434
|
set Name(value: string);
|
|
49791
51435
|
/**
|
|
49792
51436
|
* * Field Name: ParentID
|
|
49793
|
-
* * Display Name: Parent
|
|
51437
|
+
* * Display Name: Parent
|
|
49794
51438
|
* * SQL Data Type: uniqueidentifier
|
|
49795
51439
|
* * Related Entity/Foreign Key: MJ: Tags (vwTags.ID)
|
|
49796
51440
|
*/
|
|
@@ -49826,17 +51470,53 @@ export declare class MJTagEntity extends BaseEntity<MJTagEntityType> {
|
|
|
49826
51470
|
*/
|
|
49827
51471
|
get __mj_UpdatedAt(): Date;
|
|
49828
51472
|
/**
|
|
51473
|
+
* * Field Name: Status
|
|
51474
|
+
* * Display Name: Status
|
|
51475
|
+
* * SQL Data Type: nvarchar(20)
|
|
51476
|
+
* * Default Value: Active
|
|
51477
|
+
* * Value List Type: List
|
|
51478
|
+
* * Possible Values
|
|
51479
|
+
* * Active
|
|
51480
|
+
* * Deleted
|
|
51481
|
+
* * Deprecated
|
|
51482
|
+
* * Merged
|
|
51483
|
+
* * Description: Lifecycle status of the tag: Active (in use), Merged (consolidated into another tag), Deprecated (no longer assigned but preserved), Deleted (soft-deleted).
|
|
51484
|
+
*/
|
|
51485
|
+
get Status(): 'Active' | 'Deleted' | 'Deprecated' | 'Merged';
|
|
51486
|
+
set Status(value: 'Active' | 'Deleted' | 'Deprecated' | 'Merged');
|
|
51487
|
+
/**
|
|
51488
|
+
* * Field Name: MergedIntoTagID
|
|
51489
|
+
* * Display Name: Merged Into Tag
|
|
51490
|
+
* * SQL Data Type: uniqueidentifier
|
|
51491
|
+
* * Related Entity/Foreign Key: MJ: Tags (vwTags.ID)
|
|
51492
|
+
* * Description: When Status is Merged, points to the surviving tag this tag was merged into. All TaggedItem and ContentItemTag references are re-pointed during merge.
|
|
51493
|
+
*/
|
|
51494
|
+
get MergedIntoTagID(): string | null;
|
|
51495
|
+
set MergedIntoTagID(value: string | null);
|
|
51496
|
+
/**
|
|
49829
51497
|
* * Field Name: Parent
|
|
49830
|
-
* * Display Name: Parent
|
|
51498
|
+
* * Display Name: Parent Name
|
|
49831
51499
|
* * SQL Data Type: nvarchar(255)
|
|
49832
51500
|
*/
|
|
49833
51501
|
get Parent(): string | null;
|
|
49834
51502
|
/**
|
|
51503
|
+
* * Field Name: MergedIntoTag
|
|
51504
|
+
* * Display Name: Merged Into Tag Name
|
|
51505
|
+
* * SQL Data Type: nvarchar(255)
|
|
51506
|
+
*/
|
|
51507
|
+
get MergedIntoTag(): string | null;
|
|
51508
|
+
/**
|
|
49835
51509
|
* * Field Name: RootParentID
|
|
49836
|
-
* * Display Name: Root Parent
|
|
51510
|
+
* * Display Name: Root Parent
|
|
49837
51511
|
* * SQL Data Type: uniqueidentifier
|
|
49838
51512
|
*/
|
|
49839
51513
|
get RootParentID(): string | null;
|
|
51514
|
+
/**
|
|
51515
|
+
* * Field Name: RootMergedIntoTagID
|
|
51516
|
+
* * Display Name: Root Merged Into Tag
|
|
51517
|
+
* * SQL Data Type: uniqueidentifier
|
|
51518
|
+
*/
|
|
51519
|
+
get RootMergedIntoTagID(): string | null;
|
|
49840
51520
|
}
|
|
49841
51521
|
/**
|
|
49842
51522
|
* MJ: Task Dependencies - strongly typed entity sub-class
|
|
@@ -53638,6 +55318,417 @@ export declare class MJUserViewRunEntity extends BaseEntity<MJUserViewRunEntityT
|
|
|
53638
55318
|
*/
|
|
53639
55319
|
get RunByUser(): string;
|
|
53640
55320
|
}
|
|
55321
|
+
/**
|
|
55322
|
+
* Persisted grid configuration for a User View.
|
|
55323
|
+
*
|
|
55324
|
+
* Stored in the `GridState` column of the `User Views` entity. Contains column layout,
|
|
55325
|
+
* sort settings, filter state, and aggregate configuration. An empty `{}` is valid and
|
|
55326
|
+
* means "use entity-metadata defaults for all columns."
|
|
55327
|
+
*
|
|
55328
|
+
* The runtime class `ViewGridState` in MJUserViewEntityExtended mirrors this shape but
|
|
55329
|
+
* adds constructor logic. This interface represents the raw serialized form.
|
|
55330
|
+
*/
|
|
55331
|
+
export interface MJUserViewEntity_IGridState {
|
|
55332
|
+
/** Sort settings — array of field/direction pairs applied left-to-right */
|
|
55333
|
+
sortSettings?: MJUserViewEntity_IGridSortSetting[];
|
|
55334
|
+
/** Column settings — visibility, width, order, pinning, formatting */
|
|
55335
|
+
columnSettings?: MJUserViewEntity_IGridColumnSetting[];
|
|
55336
|
+
/** Filter state (composite filter tree with logic operators) */
|
|
55337
|
+
filter?: MJUserViewEntity_IFilterNode;
|
|
55338
|
+
/** Aggregate calculations and display configuration */
|
|
55339
|
+
aggregates?: MJUserViewEntity_IGridAggregatesConfig;
|
|
55340
|
+
}
|
|
55341
|
+
/**
|
|
55342
|
+
* A single sort-field entry within the grid's persisted sort configuration.
|
|
55343
|
+
*
|
|
55344
|
+
* Used inside {@link MJUserViewEntity_IGridState}.sortSettings to define multi-column sorting
|
|
55345
|
+
* applied left-to-right in the entity data grid.
|
|
55346
|
+
*/
|
|
55347
|
+
export interface MJUserViewEntity_IGridSortSetting {
|
|
55348
|
+
/** Field name to sort by */
|
|
55349
|
+
field: string;
|
|
55350
|
+
/** Sort direction */
|
|
55351
|
+
dir: 'asc' | 'desc';
|
|
55352
|
+
}
|
|
55353
|
+
/**
|
|
55354
|
+
* Persisted configuration for a single column in the entity data grid.
|
|
55355
|
+
*
|
|
55356
|
+
* Used inside {@link MJUserViewEntity_IGridState}.columnSettings. This is the serializable form
|
|
55357
|
+
* of `ViewColumnInfo` — it omits the non-persisted `EntityField` reference and
|
|
55358
|
+
* stores only user-chosen overrides for visibility, width, ordering, pinning,
|
|
55359
|
+
* and formatting.
|
|
55360
|
+
*/
|
|
55361
|
+
export interface MJUserViewEntity_IGridColumnSetting {
|
|
55362
|
+
/** Entity field ID */
|
|
55363
|
+
ID?: string;
|
|
55364
|
+
/** Field name */
|
|
55365
|
+
Name: string;
|
|
55366
|
+
/** Display name for column header (from entity metadata) */
|
|
55367
|
+
DisplayName?: string;
|
|
55368
|
+
/** User-defined display name override for column header */
|
|
55369
|
+
userDisplayName?: string;
|
|
55370
|
+
/** Whether column is hidden */
|
|
55371
|
+
hidden?: boolean;
|
|
55372
|
+
/** Column width in pixels */
|
|
55373
|
+
width?: number;
|
|
55374
|
+
/** Column order index */
|
|
55375
|
+
orderIndex?: number;
|
|
55376
|
+
/** Column pinning position ('left', 'right', or null for unpinned) */
|
|
55377
|
+
pinned?: 'left' | 'right' | null;
|
|
55378
|
+
/** Flex grow factor (for auto-sizing columns) */
|
|
55379
|
+
flex?: number;
|
|
55380
|
+
/** Minimum column width */
|
|
55381
|
+
minWidth?: number;
|
|
55382
|
+
/** Maximum column width */
|
|
55383
|
+
maxWidth?: number;
|
|
55384
|
+
/** Column formatting configuration */
|
|
55385
|
+
format?: MJUserViewEntity_IColumnFormat;
|
|
55386
|
+
}
|
|
55387
|
+
/**
|
|
55388
|
+
* Column formatting configuration for the entity data grid.
|
|
55389
|
+
*
|
|
55390
|
+
* Controls value display (number/currency/date/boolean formatting), text alignment,
|
|
55391
|
+
* header and cell styling, and conditional formatting rules. Used inside
|
|
55392
|
+
* {@link MJUserViewEntity_IGridColumnSetting}.format.
|
|
55393
|
+
*
|
|
55394
|
+
* Setting `type: 'auto'` tells the grid to infer formatting from entity field metadata.
|
|
55395
|
+
*/
|
|
55396
|
+
export interface MJUserViewEntity_IColumnFormat {
|
|
55397
|
+
/** Format type — 'auto' uses smart defaults based on field metadata */
|
|
55398
|
+
type?: 'auto' | 'number' | 'currency' | 'percent' | 'date' | 'datetime' | 'boolean' | 'text';
|
|
55399
|
+
/** Decimal places for number/currency/percent types */
|
|
55400
|
+
decimals?: number;
|
|
55401
|
+
/** Currency code (ISO 4217) for currency type, e.g. 'USD', 'EUR' */
|
|
55402
|
+
currencyCode?: string;
|
|
55403
|
+
/** Show thousands separator for number types */
|
|
55404
|
+
thousandsSeparator?: boolean;
|
|
55405
|
+
/** Date format preset or custom pattern */
|
|
55406
|
+
dateFormat?: 'short' | 'medium' | 'long' | string;
|
|
55407
|
+
/** Label to display for true values (boolean type) */
|
|
55408
|
+
trueLabel?: string;
|
|
55409
|
+
/** Label to display for false values (boolean type) */
|
|
55410
|
+
falseLabel?: string;
|
|
55411
|
+
/** How to display boolean values */
|
|
55412
|
+
booleanDisplay?: 'text' | 'checkbox' | 'icon';
|
|
55413
|
+
/** Text alignment */
|
|
55414
|
+
align?: 'left' | 'center' | 'right';
|
|
55415
|
+
/** Header styling (bold, italic, color, etc.) */
|
|
55416
|
+
headerStyle?: MJUserViewEntity_IColumnTextStyle;
|
|
55417
|
+
/** Cell styling (applies to all cells in the column) */
|
|
55418
|
+
cellStyle?: MJUserViewEntity_IColumnTextStyle;
|
|
55419
|
+
/** Conditional formatting rules (applied in order, first match wins) */
|
|
55420
|
+
conditionalRules?: MJUserViewEntity_IColumnConditionalRule[];
|
|
55421
|
+
}
|
|
55422
|
+
/**
|
|
55423
|
+
* Text styling options for grid column headers and cells.
|
|
55424
|
+
*
|
|
55425
|
+
* Used inside {@link MJUserViewEntity_IColumnFormat}.headerStyle, {@link MJUserViewEntity_IColumnFormat}.cellStyle,
|
|
55426
|
+
* and {@link MJUserViewEntity_IColumnConditionalRule}.style to control font weight, style,
|
|
55427
|
+
* decoration, and color.
|
|
55428
|
+
*/
|
|
55429
|
+
export interface MJUserViewEntity_IColumnTextStyle {
|
|
55430
|
+
/** Bold text */
|
|
55431
|
+
bold?: boolean;
|
|
55432
|
+
/** Italic text */
|
|
55433
|
+
italic?: boolean;
|
|
55434
|
+
/** Underlined text */
|
|
55435
|
+
underline?: boolean;
|
|
55436
|
+
/** Text color (CSS color value) */
|
|
55437
|
+
color?: string;
|
|
55438
|
+
/** Background color (CSS color value) */
|
|
55439
|
+
backgroundColor?: string;
|
|
55440
|
+
}
|
|
55441
|
+
/**
|
|
55442
|
+
* Conditional formatting rule for dynamic cell styling in the entity data grid.
|
|
55443
|
+
*
|
|
55444
|
+
* Used inside {@link MJUserViewEntity_IColumnFormat}.conditionalRules. Rules are evaluated in order;
|
|
55445
|
+
* the first match wins. Each rule compares the cell value against a condition and
|
|
55446
|
+
* applies the associated {@link MJUserViewEntity_IColumnTextStyle} when the condition is met.
|
|
55447
|
+
*/
|
|
55448
|
+
export interface MJUserViewEntity_IColumnConditionalRule {
|
|
55449
|
+
/** Condition type */
|
|
55450
|
+
condition: 'equals' | 'notEquals' | 'greaterThan' | 'lessThan' | 'greaterThanOrEqual' | 'lessThanOrEqual' | 'between' | 'contains' | 'startsWith' | 'endsWith' | 'isEmpty' | 'isNotEmpty';
|
|
55451
|
+
/** Value to compare against */
|
|
55452
|
+
value?: string | number | boolean;
|
|
55453
|
+
/** Second value for 'between' condition */
|
|
55454
|
+
value2?: number;
|
|
55455
|
+
/** Style to apply when condition is met */
|
|
55456
|
+
style: MJUserViewEntity_IColumnTextStyle;
|
|
55457
|
+
}
|
|
55458
|
+
/**
|
|
55459
|
+
* A single node in a composite filter tree, used inside {@link MJUserViewEntity_IGridState}.filter.
|
|
55460
|
+
*
|
|
55461
|
+
* Each node is either a **leaf condition** (has `field`, `operator`, `value`) or a
|
|
55462
|
+
* **composite group** (has `logic` and nested `filters`). This recursive structure
|
|
55463
|
+
* supports arbitrarily deep AND/OR filter expressions.
|
|
55464
|
+
*/
|
|
55465
|
+
export interface MJUserViewEntity_IFilterNode {
|
|
55466
|
+
/** Logic operator for composite groups */
|
|
55467
|
+
logic?: 'and' | 'or';
|
|
55468
|
+
/** Nested filter nodes (for composite groups) */
|
|
55469
|
+
filters?: MJUserViewEntity_IFilterNode[];
|
|
55470
|
+
/** Field name (for leaf conditions) */
|
|
55471
|
+
field?: string;
|
|
55472
|
+
/** Comparison operator (for leaf conditions) */
|
|
55473
|
+
operator?: string;
|
|
55474
|
+
/** Comparison value (for leaf conditions) */
|
|
55475
|
+
value?: string | number | boolean | null;
|
|
55476
|
+
}
|
|
55477
|
+
/**
|
|
55478
|
+
* Complete aggregate configuration for a view's grid, stored inside
|
|
55479
|
+
* {@link MJUserViewEntity_IGridState}.aggregates.
|
|
55480
|
+
*
|
|
55481
|
+
* Contains display settings (where/how to show aggregates) and an array of
|
|
55482
|
+
* aggregate expressions — each of which can be an explicit SQL expression or
|
|
55483
|
+
* an AI-generated expression from a natural-language `smartPrompt`.
|
|
55484
|
+
*/
|
|
55485
|
+
export interface MJUserViewEntity_IGridAggregatesConfig {
|
|
55486
|
+
/** Display settings for aggregate panel/row */
|
|
55487
|
+
display?: MJUserViewEntity_IGridAggregateDisplay;
|
|
55488
|
+
/** Aggregate expressions and their display configuration */
|
|
55489
|
+
expressions?: MJUserViewEntity_IGridAggregate[];
|
|
55490
|
+
}
|
|
55491
|
+
/**
|
|
55492
|
+
* Display settings for the aggregate panel and pinned summary row.
|
|
55493
|
+
*
|
|
55494
|
+
* Used inside {@link MJUserViewEntity_IGridAggregatesConfig}.display to control where and how
|
|
55495
|
+
* aggregate values are rendered — as pinned rows under columns, as summary
|
|
55496
|
+
* cards in a side/bottom panel, or both.
|
|
55497
|
+
*/
|
|
55498
|
+
export interface MJUserViewEntity_IGridAggregateDisplay {
|
|
55499
|
+
/** Whether to show column-bound aggregates in pinned row */
|
|
55500
|
+
showColumnAggregates?: boolean;
|
|
55501
|
+
/** Where to show column aggregates: pinned top or bottom row */
|
|
55502
|
+
columnPosition?: 'top' | 'bottom';
|
|
55503
|
+
/** Whether to show card aggregates in a panel */
|
|
55504
|
+
showCardAggregates?: boolean;
|
|
55505
|
+
/** Where to show the card panel */
|
|
55506
|
+
cardPosition?: 'right' | 'bottom';
|
|
55507
|
+
/** Card panel width in pixels (for 'right' position) */
|
|
55508
|
+
cardPanelWidth?: number;
|
|
55509
|
+
/** Card layout style */
|
|
55510
|
+
cardLayout?: 'horizontal' | 'vertical' | 'grid';
|
|
55511
|
+
/** Number of columns for 'grid' layout */
|
|
55512
|
+
cardGridColumns?: number;
|
|
55513
|
+
/** Card panel title */
|
|
55514
|
+
cardPanelTitle?: string;
|
|
55515
|
+
/** Whether card panel is collapsible */
|
|
55516
|
+
cardPanelCollapsible?: boolean;
|
|
55517
|
+
/** Whether card panel starts collapsed */
|
|
55518
|
+
cardPanelStartCollapsed?: boolean;
|
|
55519
|
+
}
|
|
55520
|
+
/**
|
|
55521
|
+
* Configuration for a single aggregate expression in the entity data grid.
|
|
55522
|
+
*
|
|
55523
|
+
* Used inside {@link MJUserViewEntity_IGridAggregatesConfig}.expressions. Each aggregate can be
|
|
55524
|
+
* displayed as a pinned-row value under a column or as a summary card in a panel.
|
|
55525
|
+
* Supports both explicit SQL expressions and AI-generated expressions via
|
|
55526
|
+
* `smartPrompt`.
|
|
55527
|
+
*/
|
|
55528
|
+
export interface MJUserViewEntity_IGridAggregate {
|
|
55529
|
+
/** Unique ID for this aggregate (auto-generated if not provided) */
|
|
55530
|
+
id?: string;
|
|
55531
|
+
/** SQL expression to calculate (e.g. "SUM(OrderTotal)", "COUNT(*)") */
|
|
55532
|
+
expression: string;
|
|
55533
|
+
/** Natural language prompt for AI-generated expression */
|
|
55534
|
+
smartPrompt?: string;
|
|
55535
|
+
/** Display type: 'column' (pinned row) or 'card' (summary panel) */
|
|
55536
|
+
displayType: 'column' | 'card';
|
|
55537
|
+
/** For 'column' displayType: which column to display under */
|
|
55538
|
+
column?: string;
|
|
55539
|
+
/** Human-readable label */
|
|
55540
|
+
label: string;
|
|
55541
|
+
/** Optional description (shown in tooltip) */
|
|
55542
|
+
description?: string;
|
|
55543
|
+
/** Value formatting */
|
|
55544
|
+
format?: MJUserViewEntity_IAggregateValueFormat;
|
|
55545
|
+
/** Icon for card display (Font Awesome class) */
|
|
55546
|
+
icon?: string;
|
|
55547
|
+
/** Conditional styling rules (applied in order, first match wins) */
|
|
55548
|
+
conditionalStyles?: MJUserViewEntity_IAggregateConditionalStyle[];
|
|
55549
|
+
/** Whether this aggregate is enabled (visible) */
|
|
55550
|
+
enabled?: boolean;
|
|
55551
|
+
/** Sort order for display (lower = earlier) */
|
|
55552
|
+
order?: number;
|
|
55553
|
+
}
|
|
55554
|
+
/**
|
|
55555
|
+
* Value formatting options for aggregate results.
|
|
55556
|
+
*
|
|
55557
|
+
* Used inside {@link MJUserViewEntity_IGridAggregate}.format to control how the computed
|
|
55558
|
+
* aggregate value is displayed — decimal precision, currency symbols,
|
|
55559
|
+
* thousands separators, and prefix/suffix decorations.
|
|
55560
|
+
*/
|
|
55561
|
+
export interface MJUserViewEntity_IAggregateValueFormat {
|
|
55562
|
+
/** Number of decimal places */
|
|
55563
|
+
decimals?: number;
|
|
55564
|
+
/** Currency code (ISO 4217), e.g. 'USD', 'EUR' */
|
|
55565
|
+
currencyCode?: string;
|
|
55566
|
+
/** Show thousands separator */
|
|
55567
|
+
thousandsSeparator?: boolean;
|
|
55568
|
+
/** Prefix to add before value (e.g. '$') */
|
|
55569
|
+
prefix?: string;
|
|
55570
|
+
/** Suffix to add after value (e.g. '%') */
|
|
55571
|
+
suffix?: string;
|
|
55572
|
+
/** Date format for date aggregates */
|
|
55573
|
+
dateFormat?: string;
|
|
55574
|
+
}
|
|
55575
|
+
/**
|
|
55576
|
+
* Conditional styling rule for aggregate values, providing visual indicators
|
|
55577
|
+
* (green/yellow/red) based on the computed result.
|
|
55578
|
+
*
|
|
55579
|
+
* Used inside {@link MJUserViewEntity_IGridAggregate}.conditionalStyles. Rules are evaluated
|
|
55580
|
+
* in order; the first match wins.
|
|
55581
|
+
*/
|
|
55582
|
+
export interface MJUserViewEntity_IAggregateConditionalStyle {
|
|
55583
|
+
/** Condition operator */
|
|
55584
|
+
operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'between';
|
|
55585
|
+
/** Value to compare against */
|
|
55586
|
+
value: number | string;
|
|
55587
|
+
/** Second value for 'between' operator */
|
|
55588
|
+
value2?: number | string;
|
|
55589
|
+
/** Style class to apply */
|
|
55590
|
+
style: 'success' | 'warning' | 'danger' | 'info' | 'muted';
|
|
55591
|
+
}
|
|
55592
|
+
/**
|
|
55593
|
+
* Persisted filter configuration for a User View.
|
|
55594
|
+
*
|
|
55595
|
+
* Stored in the `FilterState` column of the `User Views` entity. Represents a
|
|
55596
|
+
* composite filter tree where each node is either a leaf condition (field + operator
|
|
55597
|
+
* + value) or a group node (logic + nested filters). The default empty state is
|
|
55598
|
+
* `{ "logic": "and", "filters": [] }`.
|
|
55599
|
+
*
|
|
55600
|
+
* The runtime class `ViewFilterInfo` in MJUserViewEntityExtended transforms `logic`
|
|
55601
|
+
* into a `logicOperator` enum. This interface represents the raw serialized form.
|
|
55602
|
+
*/
|
|
55603
|
+
export interface MJUserViewEntity_IFilterState {
|
|
55604
|
+
/** Logic operator combining child filters */
|
|
55605
|
+
logic: 'and' | 'or';
|
|
55606
|
+
/** Child filter nodes — either leaf conditions or nested groups */
|
|
55607
|
+
filters: MJUserViewEntity_IFilterItem[];
|
|
55608
|
+
}
|
|
55609
|
+
/**
|
|
55610
|
+
* A single node in the {@link MJUserViewEntity_IFilterState} filter tree — either a leaf condition
|
|
55611
|
+
* or a nested composite group.
|
|
55612
|
+
*
|
|
55613
|
+
* Leaf nodes have `field`, `operator`, and `value`. Group nodes have `logic` and
|
|
55614
|
+
* `filters`. This recursive structure supports arbitrarily deep AND/OR expressions.
|
|
55615
|
+
*/
|
|
55616
|
+
export interface MJUserViewEntity_IFilterItem {
|
|
55617
|
+
/** Field name (leaf conditions) */
|
|
55618
|
+
field?: string;
|
|
55619
|
+
/** Comparison operator (leaf conditions) — e.g. 'eq', 'contains', 'isnull' */
|
|
55620
|
+
operator?: string;
|
|
55621
|
+
/** Value to compare against (leaf conditions) */
|
|
55622
|
+
value?: string | number | boolean | null;
|
|
55623
|
+
/** Logic operator for nested composite groups */
|
|
55624
|
+
logic?: 'and' | 'or';
|
|
55625
|
+
/** Nested filter nodes (composite groups) */
|
|
55626
|
+
filters?: MJUserViewEntity_IFilterItem[];
|
|
55627
|
+
}
|
|
55628
|
+
/**
|
|
55629
|
+
* A single sort-field entry within a User View's sort configuration.
|
|
55630
|
+
*
|
|
55631
|
+
* The `SortState` column of the `User Views` entity stores a JSON **array** of these
|
|
55632
|
+
* objects, representing a multi-column sort applied left-to-right. For example:
|
|
55633
|
+
* ```json
|
|
55634
|
+
* [{ "field": "LastName", "direction": "asc" }, { "field": "FirstName", "direction": "asc" }]
|
|
55635
|
+
* ```
|
|
55636
|
+
*
|
|
55637
|
+
* The runtime class `ViewSortInfo` in MJUserViewEntityExtended maps the `direction`
|
|
55638
|
+
* string to a `ViewSortDirectionInfo` enum. This interface represents the raw
|
|
55639
|
+
* serialized form. The `JSONTypeIsArray` flag is set so CodeGen emits `MJUserViewEntity_ISortStateItem[]`.
|
|
55640
|
+
*/
|
|
55641
|
+
export interface MJUserViewEntity_ISortStateItem {
|
|
55642
|
+
/** Field name to sort by */
|
|
55643
|
+
field: string;
|
|
55644
|
+
/** Sort direction (lowercase in JSON) */
|
|
55645
|
+
direction: 'asc' | 'desc';
|
|
55646
|
+
}
|
|
55647
|
+
/**
|
|
55648
|
+
* Persisted card-view configuration for a User View.
|
|
55649
|
+
*
|
|
55650
|
+
* Stored in the `CardState` column of the `User Views` entity. Controls the visual
|
|
55651
|
+
* presentation when the view is displayed in card mode. All properties are optional;
|
|
55652
|
+
* omitting them means "use component defaults."
|
|
55653
|
+
*
|
|
55654
|
+
* The card template itself (title field, subtitle, display fields, thumbnail priority)
|
|
55655
|
+
* is auto-derived from entity metadata at runtime — this interface only stores
|
|
55656
|
+
* user-chosen overrides for display preferences.
|
|
55657
|
+
*/
|
|
55658
|
+
export interface MJUserViewEntity_ICardState {
|
|
55659
|
+
/** Card size preset — controls card dimensions and content density */
|
|
55660
|
+
cardSize?: 'small' | 'medium' | 'large';
|
|
55661
|
+
}
|
|
55662
|
+
/**
|
|
55663
|
+
* Persisted display-mode configuration for a User View.
|
|
55664
|
+
*
|
|
55665
|
+
* Stored in the `DisplayState` column of the `User Views` entity. Controls which
|
|
55666
|
+
* view modes (grid, cards, timeline) are available and which is shown by default,
|
|
55667
|
+
* along with mode-specific settings like timeline grouping and card sizing.
|
|
55668
|
+
*
|
|
55669
|
+
* The runtime helpers `ParsedDisplayState`, `DefaultViewMode`, and `TimelineConfig`
|
|
55670
|
+
* on `MJUserViewEntityExtended` currently parse this field manually; once CodeGen
|
|
55671
|
+
* emits a typed `DisplayStateObject` accessor, those helpers can delegate to it.
|
|
55672
|
+
*/
|
|
55673
|
+
export interface MJUserViewEntity_IDisplayState {
|
|
55674
|
+
/** The default view mode to show when loading this view */
|
|
55675
|
+
defaultMode: 'grid' | 'cards' | 'timeline';
|
|
55676
|
+
/** Which view modes are enabled/visible for this view */
|
|
55677
|
+
enabledModes?: {
|
|
55678
|
+
grid?: boolean;
|
|
55679
|
+
cards?: boolean;
|
|
55680
|
+
timeline?: boolean;
|
|
55681
|
+
};
|
|
55682
|
+
/** Timeline-specific configuration */
|
|
55683
|
+
timeline?: MJUserViewEntity_ITimelineState;
|
|
55684
|
+
/** Card-specific configuration */
|
|
55685
|
+
cards?: MJUserViewEntity_IDisplayCardState;
|
|
55686
|
+
/** Grid-specific configuration */
|
|
55687
|
+
grid?: MJUserViewEntity_IGridDisplayState;
|
|
55688
|
+
}
|
|
55689
|
+
/**
|
|
55690
|
+
* Timeline-specific configuration for the entity viewer's timeline display mode.
|
|
55691
|
+
*
|
|
55692
|
+
* Used inside {@link MJUserViewEntity_IDisplayState}.timeline. Controls which date field drives the
|
|
55693
|
+
* timeline, how events are grouped into segments, and segment expand/collapse behavior.
|
|
55694
|
+
*/
|
|
55695
|
+
export interface MJUserViewEntity_ITimelineState {
|
|
55696
|
+
/** The date field name to use for timeline ordering */
|
|
55697
|
+
dateFieldName: string;
|
|
55698
|
+
/** Time segment grouping */
|
|
55699
|
+
segmentGrouping?: 'none' | 'day' | 'week' | 'month' | 'quarter' | 'year';
|
|
55700
|
+
/** Sort order for timeline events */
|
|
55701
|
+
sortOrder?: 'asc' | 'desc';
|
|
55702
|
+
/** Whether segments are collapsible */
|
|
55703
|
+
segmentsCollapsible?: boolean;
|
|
55704
|
+
/** Whether segments start expanded */
|
|
55705
|
+
segmentsDefaultExpanded?: boolean;
|
|
55706
|
+
/** Timeline orientation */
|
|
55707
|
+
orientation?: 'vertical' | 'horizontal';
|
|
55708
|
+
}
|
|
55709
|
+
/**
|
|
55710
|
+
* Card-specific display configuration within the view display state.
|
|
55711
|
+
*
|
|
55712
|
+
* Used inside {@link MJUserViewEntity_IDisplayState}.cards. Controls card sizing when the view
|
|
55713
|
+
* is in card display mode. The card template itself (title field, subtitle,
|
|
55714
|
+
* display fields) is auto-derived from entity metadata at runtime.
|
|
55715
|
+
*/
|
|
55716
|
+
export interface MJUserViewEntity_IDisplayCardState {
|
|
55717
|
+
/** Custom card size */
|
|
55718
|
+
cardSize?: 'small' | 'medium' | 'large';
|
|
55719
|
+
}
|
|
55720
|
+
/**
|
|
55721
|
+
* Grid-specific display configuration within the view display state.
|
|
55722
|
+
*
|
|
55723
|
+
* Used inside {@link MJUserViewEntity_IDisplayState}.grid. Controls grid-level display preferences
|
|
55724
|
+
* like row height that are separate from per-column settings in {@link IGridState}.
|
|
55725
|
+
*/
|
|
55726
|
+
export interface MJUserViewEntity_IGridDisplayState {
|
|
55727
|
+
/** Row height preference */
|
|
55728
|
+
rowHeight?: 'compact' | 'normal' | 'comfortable';
|
|
55729
|
+
/** Enable text wrapping in grid cells — long text wraps and rows auto-size */
|
|
55730
|
+
wrapText?: boolean;
|
|
55731
|
+
}
|
|
53641
55732
|
/**
|
|
53642
55733
|
* MJ: User Views - strongly typed entity sub-class
|
|
53643
55734
|
* * Schema: __mj
|
|
@@ -53730,18 +55821,36 @@ export declare class MJUserViewEntity extends BaseEntity<MJUserViewEntityType> {
|
|
|
53730
55821
|
* * Field Name: GridState
|
|
53731
55822
|
* * Display Name: Grid State
|
|
53732
55823
|
* * SQL Data Type: nvarchar(MAX)
|
|
55824
|
+
* * JSON Type: MJUserViewEntity_IGridState
|
|
53733
55825
|
* * Description: JSON storing complete grid configuration including columns, widths, and formatting.
|
|
53734
55826
|
*/
|
|
53735
55827
|
get GridState(): string | null;
|
|
53736
55828
|
set GridState(value: string | null);
|
|
55829
|
+
private _GridStateObject_cached;
|
|
55830
|
+
private _GridStateObject_lastRaw;
|
|
55831
|
+
/**
|
|
55832
|
+
* Typed accessor for GridState — returns parsed JSON as MJUserViewEntity_IGridState.
|
|
55833
|
+
* Uses lazy parsing with cache invalidation when the underlying raw value changes.
|
|
55834
|
+
*/
|
|
55835
|
+
get GridStateObject(): MJUserViewEntity_IGridState | null;
|
|
55836
|
+
set GridStateObject(value: MJUserViewEntity_IGridState | null);
|
|
53737
55837
|
/**
|
|
53738
55838
|
* * Field Name: FilterState
|
|
53739
55839
|
* * Display Name: Filter State
|
|
53740
55840
|
* * SQL Data Type: nvarchar(MAX)
|
|
55841
|
+
* * JSON Type: MJUserViewEntity_IFilterState
|
|
53741
55842
|
* * Description: JSON storing the view's filter configuration.
|
|
53742
55843
|
*/
|
|
53743
55844
|
get FilterState(): string | null;
|
|
53744
55845
|
set FilterState(value: string | null);
|
|
55846
|
+
private _FilterStateObject_cached;
|
|
55847
|
+
private _FilterStateObject_lastRaw;
|
|
55848
|
+
/**
|
|
55849
|
+
* Typed accessor for FilterState — returns parsed JSON as MJUserViewEntity_IFilterState.
|
|
55850
|
+
* Uses lazy parsing with cache invalidation when the underlying raw value changes.
|
|
55851
|
+
*/
|
|
55852
|
+
get FilterStateObject(): MJUserViewEntity_IFilterState | null;
|
|
55853
|
+
set FilterStateObject(value: MJUserViewEntity_IFilterState | null);
|
|
53745
55854
|
/**
|
|
53746
55855
|
* * Field Name: CustomFilterState
|
|
53747
55856
|
* * Display Name: Custom Filter State
|
|
@@ -53805,10 +55914,19 @@ export declare class MJUserViewEntity extends BaseEntity<MJUserViewEntityType> {
|
|
|
53805
55914
|
* * Field Name: SortState
|
|
53806
55915
|
* * Display Name: Sort State
|
|
53807
55916
|
* * SQL Data Type: nvarchar(MAX)
|
|
55917
|
+
* * JSON Type: Array<MJUserViewEntity_ISortStateItem>
|
|
53808
55918
|
* * Description: JSON storing the view's sort configuration.
|
|
53809
55919
|
*/
|
|
53810
55920
|
get SortState(): string | null;
|
|
53811
55921
|
set SortState(value: string | null);
|
|
55922
|
+
private _SortStateObject_cached;
|
|
55923
|
+
private _SortStateObject_lastRaw;
|
|
55924
|
+
/**
|
|
55925
|
+
* Typed accessor for SortState — returns parsed JSON as Array<MJUserViewEntity_ISortStateItem>.
|
|
55926
|
+
* Uses lazy parsing with cache invalidation when the underlying raw value changes.
|
|
55927
|
+
*/
|
|
55928
|
+
get SortStateObject(): Array<MJUserViewEntity_ISortStateItem> | null;
|
|
55929
|
+
set SortStateObject(value: Array<MJUserViewEntity_ISortStateItem> | null);
|
|
53812
55930
|
/**
|
|
53813
55931
|
* * Field Name: __mj_CreatedAt
|
|
53814
55932
|
* * Display Name: Created At
|
|
@@ -53835,18 +55953,36 @@ export declare class MJUserViewEntity extends BaseEntity<MJUserViewEntityType> {
|
|
|
53835
55953
|
* * Field Name: CardState
|
|
53836
55954
|
* * Display Name: Card State
|
|
53837
55955
|
* * SQL Data Type: nvarchar(MAX)
|
|
55956
|
+
* * JSON Type: MJUserViewEntity_ICardState
|
|
53838
55957
|
* * Description: JSON configuration for card display mode in Data Explorer. Stores card layout settings including title field, subtitle, display fields, thumbnails, and layout density. When null, defaults are derived from entity metadata. See CardState interface in packages/Angular/Generic/entity-viewer/src/lib/types.ts for the current schema definition.
|
|
53839
55958
|
*/
|
|
53840
55959
|
get CardState(): string | null;
|
|
53841
55960
|
set CardState(value: string | null);
|
|
55961
|
+
private _CardStateObject_cached;
|
|
55962
|
+
private _CardStateObject_lastRaw;
|
|
55963
|
+
/**
|
|
55964
|
+
* Typed accessor for CardState — returns parsed JSON as MJUserViewEntity_ICardState.
|
|
55965
|
+
* Uses lazy parsing with cache invalidation when the underlying raw value changes.
|
|
55966
|
+
*/
|
|
55967
|
+
get CardStateObject(): MJUserViewEntity_ICardState | null;
|
|
55968
|
+
set CardStateObject(value: MJUserViewEntity_ICardState | null);
|
|
53842
55969
|
/**
|
|
53843
55970
|
* * Field Name: DisplayState
|
|
53844
55971
|
* * Display Name: Display State
|
|
53845
55972
|
* * SQL Data Type: nvarchar(MAX)
|
|
55973
|
+
* * JSON Type: MJUserViewEntity_IDisplayState
|
|
53846
55974
|
* * Description: JSON configuration for display mode settings. Stores default display mode (grid/cards/timeline/chart), available modes for sharing, and mode-specific configurations like timeline date field and segmentation. See ViewDisplayState interface in packages/Angular/Generic/entity-viewer/src/lib/types.ts for schema.
|
|
53847
55975
|
*/
|
|
53848
55976
|
get DisplayState(): string | null;
|
|
53849
55977
|
set DisplayState(value: string | null);
|
|
55978
|
+
private _DisplayStateObject_cached;
|
|
55979
|
+
private _DisplayStateObject_lastRaw;
|
|
55980
|
+
/**
|
|
55981
|
+
* Typed accessor for DisplayState — returns parsed JSON as MJUserViewEntity_IDisplayState.
|
|
55982
|
+
* Uses lazy parsing with cache invalidation when the underlying raw value changes.
|
|
55983
|
+
*/
|
|
55984
|
+
get DisplayStateObject(): MJUserViewEntity_IDisplayState | null;
|
|
55985
|
+
set DisplayStateObject(value: MJUserViewEntity_IDisplayState | null);
|
|
53850
55986
|
/**
|
|
53851
55987
|
* * Field Name: UserName
|
|
53852
55988
|
* * Display Name: User Name
|