@memberjunction/core-entities 2.42.1 → 2.44.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/AIPromptExtended.d.ts +12 -0
- package/dist/custom/AIPromptExtended.d.ts.map +1 -0
- package/dist/custom/AIPromptExtended.js +30 -0
- package/dist/custom/AIPromptExtended.js.map +1 -0
- package/dist/generated/entity_subclasses.d.ts +44 -22
- package/dist/generated/entity_subclasses.d.ts.map +1 -1
- package/dist/generated/entity_subclasses.js +66 -31
- package/dist/generated/entity_subclasses.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/readme.md +268 -1
|
@@ -1327,7 +1327,7 @@ exports.AIPromptSchema = zod_1.z.object({
|
|
|
1327
1327
|
* * Display Name: Updated At
|
|
1328
1328
|
* * SQL Data Type: datetimeoffset
|
|
1329
1329
|
* * Default Value: getutcdate()`),
|
|
1330
|
-
ResponseFormat: zod_1.z.union([zod_1.z.literal('Any'), zod_1.z.literal('Text'), zod_1.z.literal('Markdown'), zod_1.z.literal('ModelSpecific'), zod_1.z.literal('JSON')]).describe(`
|
|
1330
|
+
ResponseFormat: zod_1.z.union([zod_1.z.literal('Any'), zod_1.z.literal('Text'), zod_1.z.literal('Markdown'), zod_1.z.literal('JSON'), zod_1.z.literal('ModelSpecific'), zod_1.z.literal('JSON')]).describe(`
|
|
1331
1331
|
* * Field Name: ResponseFormat
|
|
1332
1332
|
* * Display Name: Response Format
|
|
1333
1333
|
* * SQL Data Type: nvarchar(20)
|
|
@@ -1337,6 +1337,7 @@ exports.AIPromptSchema = zod_1.z.object({
|
|
|
1337
1337
|
* * Any
|
|
1338
1338
|
* * Text
|
|
1339
1339
|
* * Markdown
|
|
1340
|
+
* * JSON
|
|
1340
1341
|
* * ModelSpecific
|
|
1341
1342
|
* * JSON
|
|
1342
1343
|
* * Description: Specifies the expected response format for the AI model. Options include Any, Text, Markdown, JSON, and ModelSpecific. Defaults to Any if not specified.`),
|
|
@@ -3446,16 +3447,16 @@ exports.DashboardSchema = zod_1.z.object({
|
|
|
3446
3447
|
* * SQL Data Type: uniqueidentifier
|
|
3447
3448
|
* * Related Entity/Foreign Key: Applications (vwApplications.ID)
|
|
3448
3449
|
* * Description: Associated Application ID if Scope is App, otherwise NULL`),
|
|
3449
|
-
Code: zod_1.z.string().nullable().describe(`
|
|
3450
|
-
* * Field Name: Code
|
|
3451
|
-
* * Display Name: Code
|
|
3452
|
-
* * SQL Data Type: nvarchar(255)
|
|
3453
|
-
* * Description: Used to identify the dashboard for code-base dashboards. Allows reuse of the same DriverClass for multiple dashboards that can be rendered differently.`),
|
|
3454
3450
|
DriverClass: zod_1.z.string().nullable().describe(`
|
|
3455
3451
|
* * Field Name: DriverClass
|
|
3456
3452
|
* * Display Name: Driver Class
|
|
3457
3453
|
* * SQL Data Type: nvarchar(255)
|
|
3458
3454
|
* * Description: Specifies the runtime class that will be used for the Dashboard when Type is set to 'Code'. This class contains the custom logic and implementation for code-based dashboards.`),
|
|
3455
|
+
Code: zod_1.z.string().nullable().describe(`
|
|
3456
|
+
* * Field Name: Code
|
|
3457
|
+
* * Display Name: Code
|
|
3458
|
+
* * SQL Data Type: nvarchar(255)
|
|
3459
|
+
* * Description: Used to identify the dashboard for code-base dashboards. Allows reuse of the same DriverClass for multiple dashboards that can be rendered differently.`),
|
|
3459
3460
|
User: zod_1.z.string().describe(`
|
|
3460
3461
|
* * Field Name: User
|
|
3461
3462
|
* * Display Name: User
|
|
@@ -5391,6 +5392,17 @@ exports.EntityFieldSchema = zod_1.z.object({
|
|
|
5391
5392
|
* * None
|
|
5392
5393
|
* * All
|
|
5393
5394
|
* * Description: Determines whether values for the field should be included when the schema is packed. Options: Auto (include manually set or auto-derived values), None (exclude all values), All (include all distinct values from the table). Defaults to Auto.`),
|
|
5395
|
+
Status: zod_1.z.union([zod_1.z.literal('Active'), zod_1.z.literal('Deprecated'), zod_1.z.literal('Disabled')]).describe(`
|
|
5396
|
+
* * Field Name: Status
|
|
5397
|
+
* * Display Name: Status
|
|
5398
|
+
* * SQL Data Type: nvarchar(25)
|
|
5399
|
+
* * Default Value: Active
|
|
5400
|
+
* * Value List Type: List
|
|
5401
|
+
* * Possible Values
|
|
5402
|
+
* * Active
|
|
5403
|
+
* * Deprecated
|
|
5404
|
+
* * Disabled
|
|
5405
|
+
* * Description: Current status of the entity field - Active fields are available for use, Deprecated fields are discouraged but still functional, Disabled fields are not available for use`),
|
|
5394
5406
|
FieldCodeName: zod_1.z.string().nullable().describe(`
|
|
5395
5407
|
* * Field Name: FieldCodeName
|
|
5396
5408
|
* * Display Name: Field Code Name
|
|
@@ -12333,6 +12345,7 @@ exports.ActionEntity = ActionEntity = __decorate([
|
|
|
12333
12345
|
* @extends {BaseEntity}
|
|
12334
12346
|
* @class
|
|
12335
12347
|
* @public
|
|
12348
|
+
* @deprecated This entity is deprecated and will be removed in a future version. Using it will result in console warnings.
|
|
12336
12349
|
*/
|
|
12337
12350
|
let AIActionEntity = class AIActionEntity extends core_1.BaseEntity {
|
|
12338
12351
|
/**
|
|
@@ -12714,6 +12727,7 @@ exports.AIAgentLearningCycleEntity = AIAgentLearningCycleEntity = __decorate([
|
|
|
12714
12727
|
* @extends {BaseEntity}
|
|
12715
12728
|
* @class
|
|
12716
12729
|
* @public
|
|
12730
|
+
* @deprecated This entity is deprecated and will be removed in a future version. Using it will result in console warnings.
|
|
12717
12731
|
*/
|
|
12718
12732
|
let AIAgentModelEntity = class AIAgentModelEntity extends core_1.BaseEntity {
|
|
12719
12733
|
/**
|
|
@@ -13530,6 +13544,7 @@ exports.AIAgentEntity = AIAgentEntity = __decorate([
|
|
|
13530
13544
|
* @extends {BaseEntity}
|
|
13531
13545
|
* @class
|
|
13532
13546
|
* @public
|
|
13547
|
+
* @deprecated This entity is deprecated and will be removed in a future version. Using it will result in console warnings.
|
|
13533
13548
|
*/
|
|
13534
13549
|
let AIModelActionEntity = class AIModelActionEntity extends core_1.BaseEntity {
|
|
13535
13550
|
/**
|
|
@@ -14201,11 +14216,11 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
|
|
|
14201
14216
|
* Validate() method override for AI Prompts entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
|
|
14202
14217
|
* * CacheSimilarityThreshold: This rule ensures that if a cache similarity threshold is provided, it must be a value between 0 and 1, inclusive. If no value is provided, that's also allowed.
|
|
14203
14218
|
* * CacheTTLSeconds: This rule ensures that if the cache expiration time in seconds is provided, it must be greater than zero.
|
|
14204
|
-
* * Table-Level: This rule ensures that the ResultSelectorPromptID field must be different from the ID field. In other words, a result selector prompt cannot reference itself.
|
|
14205
14219
|
* * Table-Level: This rule ensures that if the cache match type is set to 'Vector', the cache similarity threshold must be specified. If the match type is anything other than 'Vector', the similarity threshold can be left empty.
|
|
14206
14220
|
* * Table-Level: This rule ensures that if the parallelization mode is set to 'StaticCount', then the number of parallel tasks (ParallelCount) must be provided.
|
|
14207
14221
|
* * Table-Level: This rule ensures that if the Parallelization Mode is set to 'ConfigParam', then the Parallel Config Param field must be filled in. For any other mode, the Parallel Config Param can be left empty.
|
|
14208
14222
|
* * Table-Level: This rule ensures that if the OutputType is set to 'object', an OutputExample must be provided. If the OutputType is anything other than 'object', providing an OutputExample is not required.
|
|
14223
|
+
* * Table-Level: This rule ensures that the ResultSelectorPromptID field must be different from the ID field. In other words, a result selector prompt cannot reference itself.
|
|
14209
14224
|
* @public
|
|
14210
14225
|
* @method
|
|
14211
14226
|
* @override
|
|
@@ -14214,11 +14229,11 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
|
|
|
14214
14229
|
const result = super.Validate();
|
|
14215
14230
|
this.ValidateCacheSimilarityThresholdIsBetweenZeroAndOne(result);
|
|
14216
14231
|
this.ValidateCacheTTLSecondsGreaterThanZero(result);
|
|
14217
|
-
this.ValidateResultSelectorPromptIDNotEqualID(result);
|
|
14218
14232
|
this.ValidateCacheSimilarityThresholdRequiredForVectorCache(result);
|
|
14219
14233
|
this.ValidateParallelCountWhenParallelizationModeIsStaticCount(result);
|
|
14220
14234
|
this.ValidateParallelConfigParamRequiredForConfigParamMode(result);
|
|
14221
14235
|
this.ValidateOutputExampleWhenOutputTypeObject(result);
|
|
14236
|
+
this.ValidateResultSelectorPromptIDNotEqualID(result);
|
|
14222
14237
|
return result;
|
|
14223
14238
|
}
|
|
14224
14239
|
/**
|
|
@@ -14244,17 +14259,6 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
|
|
|
14244
14259
|
}
|
|
14245
14260
|
}
|
|
14246
14261
|
/**
|
|
14247
|
-
* This rule ensures that the ResultSelectorPromptID field must be different from the ID field. In other words, a result selector prompt cannot reference itself.
|
|
14248
|
-
* @param result - the ValidationResult object to add any errors or warnings to
|
|
14249
|
-
* @public
|
|
14250
|
-
* @method
|
|
14251
|
-
*/
|
|
14252
|
-
ValidateResultSelectorPromptIDNotEqualID(result) {
|
|
14253
|
-
if (this.ResultSelectorPromptID === this.ID) {
|
|
14254
|
-
result.Errors.push(new core_1.ValidationErrorInfo("ResultSelectorPromptID", "The ResultSelectorPromptID cannot be the same as the ID. A result selector prompt cannot reference itself.", this.ResultSelectorPromptID, core_1.ValidationErrorType.Failure));
|
|
14255
|
-
}
|
|
14256
|
-
}
|
|
14257
|
-
/**
|
|
14258
14262
|
* This rule ensures that if the cache match type is set to 'Vector', the cache similarity threshold must be specified. If the match type is anything other than 'Vector', the similarity threshold can be left empty.
|
|
14259
14263
|
* @param result - the ValidationResult object to add any errors or warnings to
|
|
14260
14264
|
* @public
|
|
@@ -14299,6 +14303,17 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
|
|
|
14299
14303
|
}
|
|
14300
14304
|
}
|
|
14301
14305
|
/**
|
|
14306
|
+
* This rule ensures that the ResultSelectorPromptID field must be different from the ID field. In other words, a result selector prompt cannot reference itself.
|
|
14307
|
+
* @param result - the ValidationResult object to add any errors or warnings to
|
|
14308
|
+
* @public
|
|
14309
|
+
* @method
|
|
14310
|
+
*/
|
|
14311
|
+
ValidateResultSelectorPromptIDNotEqualID(result) {
|
|
14312
|
+
if (this.ResultSelectorPromptID === this.ID) {
|
|
14313
|
+
result.Errors.push(new core_1.ValidationErrorInfo("ResultSelectorPromptID", "The ResultSelectorPromptID cannot be the same as the ID. A result selector prompt cannot reference itself.", this.ResultSelectorPromptID, core_1.ValidationErrorType.Failure));
|
|
14314
|
+
}
|
|
14315
|
+
}
|
|
14316
|
+
/**
|
|
14302
14317
|
* * Field Name: ID
|
|
14303
14318
|
* * Display Name: ID
|
|
14304
14319
|
* * SQL Data Type: uniqueidentifier
|
|
@@ -14412,6 +14427,7 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
|
|
|
14412
14427
|
* * Any
|
|
14413
14428
|
* * Text
|
|
14414
14429
|
* * Markdown
|
|
14430
|
+
* * JSON
|
|
14415
14431
|
* * ModelSpecific
|
|
14416
14432
|
* * JSON
|
|
14417
14433
|
* * Description: Specifies the expected response format for the AI model. Options include Any, Text, Markdown, JSON, and ModelSpecific. Defaults to Any if not specified.
|
|
@@ -19890,18 +19906,6 @@ let DashboardEntity = class DashboardEntity extends core_1.BaseEntity {
|
|
|
19890
19906
|
this.Set('ApplicationID', value);
|
|
19891
19907
|
}
|
|
19892
19908
|
/**
|
|
19893
|
-
* * Field Name: Code
|
|
19894
|
-
* * Display Name: Code
|
|
19895
|
-
* * SQL Data Type: nvarchar(255)
|
|
19896
|
-
* * Description: Used to identify the dashboard for code-base dashboards. Allows reuse of the same DriverClass for multiple dashboards that can be rendered differently.
|
|
19897
|
-
*/
|
|
19898
|
-
get Code() {
|
|
19899
|
-
return this.Get('Code');
|
|
19900
|
-
}
|
|
19901
|
-
set Code(value) {
|
|
19902
|
-
this.Set('Code', value);
|
|
19903
|
-
}
|
|
19904
|
-
/**
|
|
19905
19909
|
* * Field Name: DriverClass
|
|
19906
19910
|
* * Display Name: Driver Class
|
|
19907
19911
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -19914,6 +19918,18 @@ let DashboardEntity = class DashboardEntity extends core_1.BaseEntity {
|
|
|
19914
19918
|
this.Set('DriverClass', value);
|
|
19915
19919
|
}
|
|
19916
19920
|
/**
|
|
19921
|
+
* * Field Name: Code
|
|
19922
|
+
* * Display Name: Code
|
|
19923
|
+
* * SQL Data Type: nvarchar(255)
|
|
19924
|
+
* * Description: Used to identify the dashboard for code-base dashboards. Allows reuse of the same DriverClass for multiple dashboards that can be rendered differently.
|
|
19925
|
+
*/
|
|
19926
|
+
get Code() {
|
|
19927
|
+
return this.Get('Code');
|
|
19928
|
+
}
|
|
19929
|
+
set Code(value) {
|
|
19930
|
+
this.Set('Code', value);
|
|
19931
|
+
}
|
|
19932
|
+
/**
|
|
19917
19933
|
* * Field Name: User
|
|
19918
19934
|
* * Display Name: User
|
|
19919
19935
|
* * SQL Data Type: nvarchar(100)
|
|
@@ -23007,6 +23023,7 @@ exports.EntityActionEntity = EntityActionEntity = __decorate([
|
|
|
23007
23023
|
* @extends {BaseEntity}
|
|
23008
23024
|
* @class
|
|
23009
23025
|
* @public
|
|
23026
|
+
* @deprecated This entity is deprecated and will be removed in a future version. Using it will result in console warnings.
|
|
23010
23027
|
*/
|
|
23011
23028
|
let EntityAIActionEntity = class EntityAIActionEntity extends core_1.BaseEntity {
|
|
23012
23029
|
/**
|
|
@@ -24722,6 +24739,24 @@ let EntityFieldEntity = class EntityFieldEntity extends core_1.BaseEntity {
|
|
|
24722
24739
|
this.Set('ValuesToPackWithSchema', value);
|
|
24723
24740
|
}
|
|
24724
24741
|
/**
|
|
24742
|
+
* * Field Name: Status
|
|
24743
|
+
* * Display Name: Status
|
|
24744
|
+
* * SQL Data Type: nvarchar(25)
|
|
24745
|
+
* * Default Value: Active
|
|
24746
|
+
* * Value List Type: List
|
|
24747
|
+
* * Possible Values
|
|
24748
|
+
* * Active
|
|
24749
|
+
* * Deprecated
|
|
24750
|
+
* * Disabled
|
|
24751
|
+
* * Description: Current status of the entity field - Active fields are available for use, Deprecated fields are discouraged but still functional, Disabled fields are not available for use
|
|
24752
|
+
*/
|
|
24753
|
+
get Status() {
|
|
24754
|
+
return this.Get('Status');
|
|
24755
|
+
}
|
|
24756
|
+
set Status(value) {
|
|
24757
|
+
this.Set('Status', value);
|
|
24758
|
+
}
|
|
24759
|
+
/**
|
|
24725
24760
|
* * Field Name: FieldCodeName
|
|
24726
24761
|
* * Display Name: Field Code Name
|
|
24727
24762
|
* * SQL Data Type: nvarchar(MAX)
|