@memberjunction/core-entities 5.10.0 → 5.11.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.
|
@@ -296,7 +296,7 @@ export declare const MJActionParamSchema: z.ZodObject<{
|
|
|
296
296
|
Name: z.ZodString;
|
|
297
297
|
DefaultValue: z.ZodNullable<z.ZodString>;
|
|
298
298
|
Type: z.ZodUnion<[z.ZodLiteral<"Both">, z.ZodLiteral<"Input">, z.ZodLiteral<"Output">]>;
|
|
299
|
-
ValueType: z.ZodUnion<[z.ZodLiteral<"BaseEntity Sub-Class">, z.ZodLiteral<"BaseEntity Sub-Class">, z.ZodLiteral<"
|
|
299
|
+
ValueType: z.ZodUnion<[z.ZodLiteral<"BaseEntity Sub-Class">, z.ZodLiteral<"BaseEntity Sub-Class">, z.ZodLiteral<"MediaOutput">, z.ZodLiteral<"Other">, z.ZodLiteral<"Other">, z.ZodLiteral<"Scalar">, z.ZodLiteral<"Scalar">, z.ZodLiteral<"Simple Object">, z.ZodLiteral<"Simple Object">]>;
|
|
300
300
|
IsArray: z.ZodBoolean;
|
|
301
301
|
Description: z.ZodNullable<z.ZodString>;
|
|
302
302
|
IsRequired: z.ZodBoolean;
|
|
@@ -314,7 +314,7 @@ export declare const MJActionParamSchema: z.ZodObject<{
|
|
|
314
314
|
Description?: string;
|
|
315
315
|
DefaultValue?: string;
|
|
316
316
|
Type?: "Both" | "Input" | "Output";
|
|
317
|
-
ValueType?: "BaseEntity Sub-Class" | "
|
|
317
|
+
ValueType?: "BaseEntity Sub-Class" | "MediaOutput" | "Other" | "Scalar" | "Simple Object";
|
|
318
318
|
IsArray?: boolean;
|
|
319
319
|
IsRequired?: boolean;
|
|
320
320
|
MediaModality?: "Audio" | "Image" | "Video";
|
|
@@ -328,7 +328,7 @@ export declare const MJActionParamSchema: z.ZodObject<{
|
|
|
328
328
|
Description?: string;
|
|
329
329
|
DefaultValue?: string;
|
|
330
330
|
Type?: "Both" | "Input" | "Output";
|
|
331
|
-
ValueType?: "BaseEntity Sub-Class" | "
|
|
331
|
+
ValueType?: "BaseEntity Sub-Class" | "MediaOutput" | "Other" | "Scalar" | "Simple Object";
|
|
332
332
|
IsArray?: boolean;
|
|
333
333
|
IsRequired?: boolean;
|
|
334
334
|
MediaModality?: "Audio" | "Image" | "Video";
|
|
@@ -10310,6 +10310,7 @@ export declare const MJQuerySchema: z.ZodObject<{
|
|
|
10310
10310
|
EmbeddingModelID: z.ZodNullable<z.ZodString>;
|
|
10311
10311
|
CacheValidationSQL: z.ZodNullable<z.ZodString>;
|
|
10312
10312
|
SQLDialectID: z.ZodString;
|
|
10313
|
+
Reusable: z.ZodBoolean;
|
|
10313
10314
|
Category: z.ZodNullable<z.ZodString>;
|
|
10314
10315
|
EmbeddingModel: z.ZodNullable<z.ZodString>;
|
|
10315
10316
|
SQLDialect: z.ZodString;
|
|
@@ -10339,6 +10340,7 @@ export declare const MJQuerySchema: z.ZodObject<{
|
|
|
10339
10340
|
CacheMaxSize?: number;
|
|
10340
10341
|
CacheValidationSQL?: string;
|
|
10341
10342
|
SQLDialectID?: string;
|
|
10343
|
+
Reusable?: boolean;
|
|
10342
10344
|
SQLDialect?: string;
|
|
10343
10345
|
}, {
|
|
10344
10346
|
ID?: string;
|
|
@@ -10366,6 +10368,7 @@ export declare const MJQuerySchema: z.ZodObject<{
|
|
|
10366
10368
|
CacheMaxSize?: number;
|
|
10367
10369
|
CacheValidationSQL?: string;
|
|
10368
10370
|
SQLDialectID?: string;
|
|
10371
|
+
Reusable?: boolean;
|
|
10369
10372
|
SQLDialect?: string;
|
|
10370
10373
|
}>;
|
|
10371
10374
|
export type MJQueryEntityType = z.infer<typeof MJQuerySchema>;
|
|
@@ -10419,6 +10422,47 @@ export declare const MJQueryCategorySchema: z.ZodObject<{
|
|
|
10419
10422
|
CacheInheritanceEnabled?: boolean;
|
|
10420
10423
|
}>;
|
|
10421
10424
|
export type MJQueryCategoryEntityType = z.infer<typeof MJQueryCategorySchema>;
|
|
10425
|
+
/**
|
|
10426
|
+
* zod schema definition for the entity MJ: Query Dependencies
|
|
10427
|
+
*/
|
|
10428
|
+
export declare const MJQueryDependencySchema: z.ZodObject<{
|
|
10429
|
+
ID: z.ZodString;
|
|
10430
|
+
QueryID: z.ZodString;
|
|
10431
|
+
DependsOnQueryID: z.ZodString;
|
|
10432
|
+
ReferencePath: z.ZodString;
|
|
10433
|
+
Alias: z.ZodNullable<z.ZodString>;
|
|
10434
|
+
ParameterMapping: z.ZodNullable<z.ZodString>;
|
|
10435
|
+
DetectionMethod: z.ZodUnion<[z.ZodLiteral<"Auto">, z.ZodLiteral<"Manual">]>;
|
|
10436
|
+
__mj_CreatedAt: z.ZodDate;
|
|
10437
|
+
__mj_UpdatedAt: z.ZodDate;
|
|
10438
|
+
Query: z.ZodString;
|
|
10439
|
+
DependsOnQuery: z.ZodString;
|
|
10440
|
+
}, "strip", z.ZodTypeAny, {
|
|
10441
|
+
ID?: string;
|
|
10442
|
+
__mj_CreatedAt?: Date;
|
|
10443
|
+
__mj_UpdatedAt?: Date;
|
|
10444
|
+
QueryID?: string;
|
|
10445
|
+
Query?: string;
|
|
10446
|
+
DependsOnQueryID?: string;
|
|
10447
|
+
ReferencePath?: string;
|
|
10448
|
+
Alias?: string;
|
|
10449
|
+
ParameterMapping?: string;
|
|
10450
|
+
DetectionMethod?: "Manual" | "Auto";
|
|
10451
|
+
DependsOnQuery?: string;
|
|
10452
|
+
}, {
|
|
10453
|
+
ID?: string;
|
|
10454
|
+
__mj_CreatedAt?: Date;
|
|
10455
|
+
__mj_UpdatedAt?: Date;
|
|
10456
|
+
QueryID?: string;
|
|
10457
|
+
Query?: string;
|
|
10458
|
+
DependsOnQueryID?: string;
|
|
10459
|
+
ReferencePath?: string;
|
|
10460
|
+
Alias?: string;
|
|
10461
|
+
ParameterMapping?: string;
|
|
10462
|
+
DetectionMethod?: "Manual" | "Auto";
|
|
10463
|
+
DependsOnQuery?: string;
|
|
10464
|
+
}>;
|
|
10465
|
+
export type MJQueryDependencyEntityType = z.infer<typeof MJQueryDependencySchema>;
|
|
10422
10466
|
/**
|
|
10423
10467
|
* zod schema definition for the entity MJ: Query Entities
|
|
10424
10468
|
*/
|
|
@@ -14894,17 +14938,17 @@ export declare class MJActionParamEntity extends BaseEntity<MJActionParamEntityT
|
|
|
14894
14938
|
* * Possible Values
|
|
14895
14939
|
* * BaseEntity Sub-Class
|
|
14896
14940
|
* * BaseEntity Sub-Class
|
|
14897
|
-
* * Other
|
|
14898
14941
|
* * MediaOutput
|
|
14899
14942
|
* * Other
|
|
14943
|
+
* * Other
|
|
14900
14944
|
* * Scalar
|
|
14901
14945
|
* * Scalar
|
|
14902
14946
|
* * Simple Object
|
|
14903
14947
|
* * Simple Object
|
|
14904
14948
|
* * Description: Tracks the basic value type of the parameter, additional information can be provided in the Description field
|
|
14905
14949
|
*/
|
|
14906
|
-
get ValueType(): 'BaseEntity Sub-Class' | 'BaseEntity Sub-Class' | '
|
|
14907
|
-
set ValueType(value: 'BaseEntity Sub-Class' | 'BaseEntity Sub-Class' | '
|
|
14950
|
+
get ValueType(): 'BaseEntity Sub-Class' | 'BaseEntity Sub-Class' | 'MediaOutput' | 'Other' | 'Other' | 'Scalar' | 'Scalar' | 'Simple Object' | 'Simple Object';
|
|
14951
|
+
set ValueType(value: 'BaseEntity Sub-Class' | 'BaseEntity Sub-Class' | 'MediaOutput' | 'Other' | 'Other' | 'Scalar' | 'Scalar' | 'Simple Object' | 'Simple Object');
|
|
14908
14952
|
/**
|
|
14909
14953
|
* * Field Name: IsArray
|
|
14910
14954
|
* * Display Name: Is Array
|
|
@@ -43455,6 +43499,15 @@ export declare class MJQueryEntity extends BaseEntity<MJQueryEntityType> {
|
|
|
43455
43499
|
get SQLDialectID(): string;
|
|
43456
43500
|
set SQLDialectID(value: string);
|
|
43457
43501
|
/**
|
|
43502
|
+
* * Field Name: Reusable
|
|
43503
|
+
* * Display Name: Is Reusable
|
|
43504
|
+
* * SQL Data Type: bit
|
|
43505
|
+
* * Default Value: 0
|
|
43506
|
+
* * Description: When true, this query can be referenced by other queries using composition syntax. Only queries that are both Reusable and Approved can be composed into other queries.
|
|
43507
|
+
*/
|
|
43508
|
+
get Reusable(): boolean;
|
|
43509
|
+
set Reusable(value: boolean);
|
|
43510
|
+
/**
|
|
43458
43511
|
* * Field Name: Category
|
|
43459
43512
|
* * Display Name: Category Name
|
|
43460
43513
|
* * SQL Data Type: nvarchar(50)
|
|
@@ -43602,6 +43655,120 @@ export declare class MJQueryCategoryEntity extends BaseEntity<MJQueryCategoryEnt
|
|
|
43602
43655
|
*/
|
|
43603
43656
|
get RootParentID(): string | null;
|
|
43604
43657
|
}
|
|
43658
|
+
/**
|
|
43659
|
+
* MJ: Query Dependencies - strongly typed entity sub-class
|
|
43660
|
+
* * Schema: __mj
|
|
43661
|
+
* * Base Table: QueryDependency
|
|
43662
|
+
* * Base View: vwQueryDependencies
|
|
43663
|
+
* * @description Tracks which queries reference other queries via composition syntax. Auto-populated by the query save pipeline.
|
|
43664
|
+
* * Primary Key: ID
|
|
43665
|
+
* @extends {BaseEntity}
|
|
43666
|
+
* @class
|
|
43667
|
+
* @public
|
|
43668
|
+
*/
|
|
43669
|
+
export declare class MJQueryDependencyEntity extends BaseEntity<MJQueryDependencyEntityType> {
|
|
43670
|
+
/**
|
|
43671
|
+
* Loads the MJ: Query Dependencies record from the database
|
|
43672
|
+
* @param ID: string - primary key value to load the MJ: Query Dependencies record.
|
|
43673
|
+
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
43674
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
43675
|
+
* @public
|
|
43676
|
+
* @async
|
|
43677
|
+
* @memberof MJQueryDependencyEntity
|
|
43678
|
+
* @method
|
|
43679
|
+
* @override
|
|
43680
|
+
*/
|
|
43681
|
+
Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
|
|
43682
|
+
/**
|
|
43683
|
+
* * Field Name: ID
|
|
43684
|
+
* * Display Name: ID
|
|
43685
|
+
* * SQL Data Type: uniqueidentifier
|
|
43686
|
+
* * Default Value: newsequentialid()
|
|
43687
|
+
*/
|
|
43688
|
+
get ID(): string;
|
|
43689
|
+
set ID(value: string);
|
|
43690
|
+
/**
|
|
43691
|
+
* * Field Name: QueryID
|
|
43692
|
+
* * Display Name: Query
|
|
43693
|
+
* * SQL Data Type: uniqueidentifier
|
|
43694
|
+
* * Related Entity/Foreign Key: MJ: Queries (vwQueries.ID)
|
|
43695
|
+
* * Description: Foreign key to the query that contains the composition reference.
|
|
43696
|
+
*/
|
|
43697
|
+
get QueryID(): string;
|
|
43698
|
+
set QueryID(value: string);
|
|
43699
|
+
/**
|
|
43700
|
+
* * Field Name: DependsOnQueryID
|
|
43701
|
+
* * Display Name: Depends On Query
|
|
43702
|
+
* * SQL Data Type: uniqueidentifier
|
|
43703
|
+
* * Related Entity/Foreign Key: MJ: Queries (vwQueries.ID)
|
|
43704
|
+
* * Description: Foreign key to the referenced (depended-upon) query.
|
|
43705
|
+
*/
|
|
43706
|
+
get DependsOnQueryID(): string;
|
|
43707
|
+
set DependsOnQueryID(value: string);
|
|
43708
|
+
/**
|
|
43709
|
+
* * Field Name: ReferencePath
|
|
43710
|
+
* * Display Name: Reference Path
|
|
43711
|
+
* * SQL Data Type: nvarchar(500)
|
|
43712
|
+
* * Description: The full composition reference path as written in the SQL.
|
|
43713
|
+
*/
|
|
43714
|
+
get ReferencePath(): string;
|
|
43715
|
+
set ReferencePath(value: string);
|
|
43716
|
+
/**
|
|
43717
|
+
* * Field Name: Alias
|
|
43718
|
+
* * Display Name: Alias
|
|
43719
|
+
* * SQL Data Type: nvarchar(100)
|
|
43720
|
+
* * Description: SQL alias used for the composed CTE in the referencing query.
|
|
43721
|
+
*/
|
|
43722
|
+
get Alias(): string | null;
|
|
43723
|
+
set Alias(value: string | null);
|
|
43724
|
+
/**
|
|
43725
|
+
* * Field Name: ParameterMapping
|
|
43726
|
+
* * Display Name: Parameter Mapping
|
|
43727
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
43728
|
+
* * Description: JSON object mapping parameter names to values or pass-through parameter names.
|
|
43729
|
+
*/
|
|
43730
|
+
get ParameterMapping(): string | null;
|
|
43731
|
+
set ParameterMapping(value: string | null);
|
|
43732
|
+
/**
|
|
43733
|
+
* * Field Name: DetectionMethod
|
|
43734
|
+
* * Display Name: Detection Method
|
|
43735
|
+
* * SQL Data Type: nvarchar(20)
|
|
43736
|
+
* * Default Value: Auto
|
|
43737
|
+
* * Value List Type: List
|
|
43738
|
+
* * Possible Values
|
|
43739
|
+
* * Auto
|
|
43740
|
+
* * Manual
|
|
43741
|
+
* * Description: How the dependency was detected: Auto (parsed from SQL) or Manual (user-specified).
|
|
43742
|
+
*/
|
|
43743
|
+
get DetectionMethod(): 'Auto' | 'Manual';
|
|
43744
|
+
set DetectionMethod(value: 'Auto' | 'Manual');
|
|
43745
|
+
/**
|
|
43746
|
+
* * Field Name: __mj_CreatedAt
|
|
43747
|
+
* * Display Name: Created At
|
|
43748
|
+
* * SQL Data Type: datetimeoffset
|
|
43749
|
+
* * Default Value: getutcdate()
|
|
43750
|
+
*/
|
|
43751
|
+
get __mj_CreatedAt(): Date;
|
|
43752
|
+
/**
|
|
43753
|
+
* * Field Name: __mj_UpdatedAt
|
|
43754
|
+
* * Display Name: Updated At
|
|
43755
|
+
* * SQL Data Type: datetimeoffset
|
|
43756
|
+
* * Default Value: getutcdate()
|
|
43757
|
+
*/
|
|
43758
|
+
get __mj_UpdatedAt(): Date;
|
|
43759
|
+
/**
|
|
43760
|
+
* * Field Name: Query
|
|
43761
|
+
* * Display Name: Source Query Name
|
|
43762
|
+
* * SQL Data Type: nvarchar(255)
|
|
43763
|
+
*/
|
|
43764
|
+
get Query(): string;
|
|
43765
|
+
/**
|
|
43766
|
+
* * Field Name: DependsOnQuery
|
|
43767
|
+
* * Display Name: Target Query Name
|
|
43768
|
+
* * SQL Data Type: nvarchar(255)
|
|
43769
|
+
*/
|
|
43770
|
+
get DependsOnQuery(): string;
|
|
43771
|
+
}
|
|
43605
43772
|
/**
|
|
43606
43773
|
* MJ: Query Entities - strongly typed entity sub-class
|
|
43607
43774
|
* * Schema: __mj
|