@memberjunction/core-entities 2.43.0 → 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.
@@ -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
@@ -14215,11 +14216,11 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
14215
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:
14216
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.
14217
14218
  * * CacheTTLSeconds: This rule ensures that if the cache expiration time in seconds is provided, it must be greater than zero.
14218
- * * 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.
14219
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.
14220
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.
14221
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.
14222
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.
14223
14224
  * @public
14224
14225
  * @method
14225
14226
  * @override
@@ -14228,11 +14229,11 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
14228
14229
  const result = super.Validate();
14229
14230
  this.ValidateCacheSimilarityThresholdIsBetweenZeroAndOne(result);
14230
14231
  this.ValidateCacheTTLSecondsGreaterThanZero(result);
14231
- this.ValidateResultSelectorPromptIDNotEqualID(result);
14232
14232
  this.ValidateCacheSimilarityThresholdRequiredForVectorCache(result);
14233
14233
  this.ValidateParallelCountWhenParallelizationModeIsStaticCount(result);
14234
14234
  this.ValidateParallelConfigParamRequiredForConfigParamMode(result);
14235
14235
  this.ValidateOutputExampleWhenOutputTypeObject(result);
14236
+ this.ValidateResultSelectorPromptIDNotEqualID(result);
14236
14237
  return result;
14237
14238
  }
14238
14239
  /**
@@ -14258,17 +14259,6 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
14258
14259
  }
14259
14260
  }
14260
14261
  /**
14261
- * This rule ensures that the ResultSelectorPromptID field must be different from the ID field. In other words, a result selector prompt cannot reference itself.
14262
- * @param result - the ValidationResult object to add any errors or warnings to
14263
- * @public
14264
- * @method
14265
- */
14266
- ValidateResultSelectorPromptIDNotEqualID(result) {
14267
- if (this.ResultSelectorPromptID === this.ID) {
14268
- 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));
14269
- }
14270
- }
14271
- /**
14272
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.
14273
14263
  * @param result - the ValidationResult object to add any errors or warnings to
14274
14264
  * @public
@@ -14313,6 +14303,17 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
14313
14303
  }
14314
14304
  }
14315
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
+ /**
14316
14317
  * * Field Name: ID
14317
14318
  * * Display Name: ID
14318
14319
  * * SQL Data Type: uniqueidentifier
@@ -14426,6 +14427,7 @@ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
14426
14427
  * * Any
14427
14428
  * * Text
14428
14429
  * * Markdown
14430
+ * * JSON
14429
14431
  * * ModelSpecific
14430
14432
  * * JSON
14431
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.
@@ -19904,18 +19906,6 @@ let DashboardEntity = class DashboardEntity extends core_1.BaseEntity {
19904
19906
  this.Set('ApplicationID', value);
19905
19907
  }
19906
19908
  /**
19907
- * * Field Name: Code
19908
- * * Display Name: Code
19909
- * * SQL Data Type: nvarchar(255)
19910
- * * Description: Used to identify the dashboard for code-base dashboards. Allows reuse of the same DriverClass for multiple dashboards that can be rendered differently.
19911
- */
19912
- get Code() {
19913
- return this.Get('Code');
19914
- }
19915
- set Code(value) {
19916
- this.Set('Code', value);
19917
- }
19918
- /**
19919
19909
  * * Field Name: DriverClass
19920
19910
  * * Display Name: Driver Class
19921
19911
  * * SQL Data Type: nvarchar(255)
@@ -19928,6 +19918,18 @@ let DashboardEntity = class DashboardEntity extends core_1.BaseEntity {
19928
19918
  this.Set('DriverClass', value);
19929
19919
  }
19930
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
+ /**
19931
19933
  * * Field Name: User
19932
19934
  * * Display Name: User
19933
19935
  * * SQL Data Type: nvarchar(100)