@memberjunction/core-entities 2.27.1 → 2.29.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.
@@ -1,4 +1,4 @@
1
- import { BaseEntity, EntitySaveOptions } from "@memberjunction/core";
1
+ import { BaseEntity, EntitySaveOptions, ValidationResult } from "@memberjunction/core";
2
2
  import { z } from "zod";
3
3
  export declare const loadModule: () => void;
4
4
  /**
@@ -1314,6 +1314,8 @@ export declare const CommunicationProviderSchema: z.ZodObject<{
1314
1314
  __mj_CreatedAt: z.ZodDate;
1315
1315
  __mj_UpdatedAt: z.ZodDate;
1316
1316
  SupportsScheduledSending: z.ZodBoolean;
1317
+ SupportsForwarding: z.ZodBoolean;
1318
+ SupportsReplying: z.ZodBoolean;
1317
1319
  }, "strip", z.ZodTypeAny, {
1318
1320
  ID?: string;
1319
1321
  __mj_CreatedAt?: Date;
@@ -1324,6 +1326,8 @@ export declare const CommunicationProviderSchema: z.ZodObject<{
1324
1326
  SupportsSending?: boolean;
1325
1327
  SupportsReceiving?: boolean;
1326
1328
  SupportsScheduledSending?: boolean;
1329
+ SupportsForwarding?: boolean;
1330
+ SupportsReplying?: boolean;
1327
1331
  }, {
1328
1332
  ID?: string;
1329
1333
  __mj_CreatedAt?: Date;
@@ -1334,6 +1338,8 @@ export declare const CommunicationProviderSchema: z.ZodObject<{
1334
1338
  SupportsSending?: boolean;
1335
1339
  SupportsReceiving?: boolean;
1336
1340
  SupportsScheduledSending?: boolean;
1341
+ SupportsForwarding?: boolean;
1342
+ SupportsReplying?: boolean;
1337
1343
  }>;
1338
1344
  export type CommunicationProviderEntityType = z.infer<typeof CommunicationProviderSchema>;
1339
1345
  /**
@@ -3322,6 +3328,11 @@ export declare const EntityFieldSchema: z.ZodObject<{
3322
3328
  ScopeDefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3323
3329
  AutoUpdateRelatedEntityInfo: z.ZodBoolean;
3324
3330
  ValuesToPackWithSchema: z.ZodUnion<[z.ZodLiteral<"Auto">, z.ZodLiteral<"None">, z.ZodLiteral<"All">]>;
3331
+ GeneratedValidationFunctionName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3332
+ GeneratedValidationFunctionDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3333
+ GeneratedValidationFunctionCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3334
+ GeneratedValidationFunctionCheckConstraint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3335
+ FieldCodeName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3325
3336
  Entity: z.ZodString;
3326
3337
  SchemaName: z.ZodString;
3327
3338
  BaseTable: z.ZodString;
@@ -3384,6 +3395,11 @@ export declare const EntityFieldSchema: z.ZodObject<{
3384
3395
  EntityIDFieldName?: string;
3385
3396
  AutoUpdateRelatedEntityInfo?: boolean;
3386
3397
  ValuesToPackWithSchema?: "None" | "Auto" | "All";
3398
+ GeneratedValidationFunctionName?: string;
3399
+ GeneratedValidationFunctionDescription?: string;
3400
+ GeneratedValidationFunctionCode?: string;
3401
+ GeneratedValidationFunctionCheckConstraint?: string;
3402
+ FieldCodeName?: string;
3387
3403
  RelatedEntity?: string;
3388
3404
  RelatedEntitySchemaName?: string;
3389
3405
  RelatedEntityBaseTable?: string;
@@ -3440,6 +3456,11 @@ export declare const EntityFieldSchema: z.ZodObject<{
3440
3456
  EntityIDFieldName?: string;
3441
3457
  AutoUpdateRelatedEntityInfo?: boolean;
3442
3458
  ValuesToPackWithSchema?: "None" | "Auto" | "All";
3459
+ GeneratedValidationFunctionName?: string;
3460
+ GeneratedValidationFunctionDescription?: string;
3461
+ GeneratedValidationFunctionCode?: string;
3462
+ GeneratedValidationFunctionCheckConstraint?: string;
3463
+ FieldCodeName?: string;
3443
3464
  RelatedEntity?: string;
3444
3465
  RelatedEntitySchemaName?: string;
3445
3466
  RelatedEntityBaseTable?: string;
@@ -3956,50 +3977,6 @@ export declare const FileSchema: z.ZodObject<{
3956
3977
  Provider?: string;
3957
3978
  }>;
3958
3979
  export type FileEntityType = z.infer<typeof FileSchema>;
3959
- /**
3960
- * zod schema definition for the entity Flyway _schema _histories
3961
- */
3962
- export declare const flyway_schema_historySchema: z.ZodObject<{
3963
- installed_rank: z.ZodNumber;
3964
- version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3965
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3966
- type: z.ZodString;
3967
- script: z.ZodString;
3968
- checksum: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3969
- installed_by: z.ZodString;
3970
- installed_on: z.ZodDate;
3971
- execution_time: z.ZodNumber;
3972
- success: z.ZodBoolean;
3973
- __mj_CreatedAt: z.ZodDate;
3974
- __mj_UpdatedAt: z.ZodDate;
3975
- }, "strip", z.ZodTypeAny, {
3976
- type?: string;
3977
- script?: string;
3978
- success?: boolean;
3979
- description?: string;
3980
- version?: string;
3981
- __mj_CreatedAt?: Date;
3982
- __mj_UpdatedAt?: Date;
3983
- installed_rank?: number;
3984
- checksum?: number;
3985
- installed_by?: string;
3986
- installed_on?: Date;
3987
- execution_time?: number;
3988
- }, {
3989
- type?: string;
3990
- script?: string;
3991
- success?: boolean;
3992
- description?: string;
3993
- version?: string;
3994
- __mj_CreatedAt?: Date;
3995
- __mj_UpdatedAt?: Date;
3996
- installed_rank?: number;
3997
- checksum?: number;
3998
- installed_by?: string;
3999
- installed_on?: Date;
4000
- execution_time?: number;
4001
- }>;
4002
- export type flyway_schema_historyEntityType = z.infer<typeof flyway_schema_historySchema>;
4003
3980
  /**
4004
3981
  * zod schema definition for the entity Integration URL Formats
4005
3982
  */
@@ -8451,6 +8428,37 @@ export declare class AIModelEntity extends BaseEntity<AIModelEntityType> {
8451
8428
  */
8452
8429
  Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
8453
8430
  /**
8431
+ * Validate() method override for AI Models entity. This is an auto-generated method that invokes the generated field validators for this entity for the following fields:
8432
+ * * SpeedRank: This rule ensures that the speed rank must be zero or a positive number.
8433
+ * * CostRank: This rule ensures that the cost rank of an item must be zero or higher. This means that the cost rank cannot be negative.
8434
+ * * PowerRank: This rule ensures that the power rank must be greater than or equal to zero, meaning that it cannot be negative.
8435
+ * @public
8436
+ * @method
8437
+ * @override
8438
+ */
8439
+ Validate(): ValidationResult;
8440
+ /**
8441
+ * This rule ensures that the speed rank must be zero or a positive number.
8442
+ * @param result - the ValidationResult object to add any errors or warnings to
8443
+ * @public
8444
+ * @method
8445
+ */
8446
+ ValidateSpeedRank(result: ValidationResult): void;
8447
+ /**
8448
+ * This rule ensures that the cost rank of an item must be zero or higher. This means that the cost rank cannot be negative.
8449
+ * @param result - the ValidationResult object to add any errors or warnings to
8450
+ * @public
8451
+ * @method
8452
+ */
8453
+ ValidateCostRank(result: ValidationResult): void;
8454
+ /**
8455
+ * This rule ensures that the power rank must be greater than or equal to zero, meaning that it cannot be negative.
8456
+ * @param result - the ValidationResult object to add any errors or warnings to
8457
+ * @public
8458
+ * @method
8459
+ */
8460
+ ValidatePowerRank(result: ValidationResult): void;
8461
+ /**
8454
8462
  * * Field Name: ID
8455
8463
  * * Display Name: ID
8456
8464
  * * SQL Data Type: uniqueidentifier
@@ -10157,6 +10165,24 @@ export declare class CommunicationProviderEntity extends BaseEntity<Communicatio
10157
10165
  */
10158
10166
  get SupportsScheduledSending(): boolean;
10159
10167
  set SupportsScheduledSending(value: boolean);
10168
+ /**
10169
+ * * Field Name: SupportsForwarding
10170
+ * * Display Name: Supports Forwarding
10171
+ * * SQL Data Type: bit
10172
+ * * Default Value: 0
10173
+ * * Description: Whether or not the provider supports forwarding messages to another recipient
10174
+ */
10175
+ get SupportsForwarding(): boolean;
10176
+ set SupportsForwarding(value: boolean);
10177
+ /**
10178
+ * * Field Name: SupportsReplying
10179
+ * * Display Name: Supports Replying
10180
+ * * SQL Data Type: bit
10181
+ * * Default Value: 0
10182
+ * * Description: Whether or not the provider supports replying to messages
10183
+ */
10184
+ get SupportsReplying(): boolean;
10185
+ set SupportsReplying(value: boolean);
10160
10186
  }
10161
10187
  /**
10162
10188
  * Communication Runs - strongly typed entity sub-class
@@ -11903,6 +11929,21 @@ export declare class ConversationDetailEntity extends BaseEntity<ConversationDet
11903
11929
  */
11904
11930
  Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
11905
11931
  /**
11932
+ * Validate() method override for Conversation Details entity. This is an auto-generated method that invokes the generated field validators for this entity for the following fields:
11933
+ * * UserRating: This rule ensures that the user rating is between 1 and 10, inclusive. Ratings below 1 or above 10 are not allowed.
11934
+ * @public
11935
+ * @method
11936
+ * @override
11937
+ */
11938
+ Validate(): ValidationResult;
11939
+ /**
11940
+ * This rule ensures that the user rating is between 1 and 10, inclusive. Ratings below 1 or above 10 are not allowed.
11941
+ * @param result - the ValidationResult object to add any errors or warnings to
11942
+ * @public
11943
+ * @method
11944
+ */
11945
+ ValidateUserRating(result: ValidationResult): void;
11946
+ /**
11906
11947
  * * Field Name: ID
11907
11948
  * * Display Name: ID
11908
11949
  * * SQL Data Type: uniqueidentifier
@@ -12024,7 +12065,6 @@ export declare class ConversationDetailEntity extends BaseEntity<ConversationDet
12024
12065
  * * Field Name: User
12025
12066
  * * Display Name: User
12026
12067
  * * SQL Data Type: nvarchar(100)
12027
- * * Default Value: null
12028
12068
  */
12029
12069
  get User(): string | null;
12030
12070
  }
@@ -15709,6 +15749,44 @@ export declare class EntityFieldEntity extends BaseEntity<EntityFieldEntityType>
15709
15749
  get ValuesToPackWithSchema(): 'Auto' | 'None' | 'All';
15710
15750
  set ValuesToPackWithSchema(value: 'Auto' | 'None' | 'All');
15711
15751
  /**
15752
+ * * Field Name: GeneratedValidationFunctionName
15753
+ * * Display Name: Generated Validation Function Name
15754
+ * * SQL Data Type: nvarchar(255)
15755
+ * * Description: Contains the name of the generated field validation function, if it exists, null otherwise
15756
+ */
15757
+ get GeneratedValidationFunctionName(): string | null;
15758
+ set GeneratedValidationFunctionName(value: string | null);
15759
+ /**
15760
+ * * Field Name: GeneratedValidationFunctionDescription
15761
+ * * Display Name: Generated Validation Function Description
15762
+ * * SQL Data Type: nvarchar(MAX)
15763
+ * * Description: Contains a description for business users of what the validation function for this field does, if it exists
15764
+ */
15765
+ get GeneratedValidationFunctionDescription(): string | null;
15766
+ set GeneratedValidationFunctionDescription(value: string | null);
15767
+ /**
15768
+ * * Field Name: GeneratedValidationFunctionCode
15769
+ * * Display Name: Generated Validation Function Code
15770
+ * * SQL Data Type: nvarchar(MAX)
15771
+ * * Description: Contains the generated code for the field validation function, if it exists, null otherwise.
15772
+ */
15773
+ get GeneratedValidationFunctionCode(): string | null;
15774
+ set GeneratedValidationFunctionCode(value: string | null);
15775
+ /**
15776
+ * * Field Name: GeneratedValidationFunctionCheckConstraint
15777
+ * * Display Name: Generated Validation Function Check Constraint
15778
+ * * SQL Data Type: nvarchar(MAX)
15779
+ * * Description: If a generated validation function was generated previously, this stores the text from the source CHECK constraint in the database. This is stored so that regeneration of the validation function will only occur when the source CHECK constraint changes.
15780
+ */
15781
+ get GeneratedValidationFunctionCheckConstraint(): string | null;
15782
+ set GeneratedValidationFunctionCheckConstraint(value: string | null);
15783
+ /**
15784
+ * * Field Name: FieldCodeName
15785
+ * * Display Name: Field Code Name
15786
+ * * SQL Data Type: nvarchar(MAX)
15787
+ */
15788
+ get FieldCodeName(): string | null;
15789
+ /**
15712
15790
  * * Field Name: Entity
15713
15791
  * * SQL Data Type: nvarchar(255)
15714
15792
  */
@@ -16646,6 +16724,21 @@ export declare class ExplorerNavigationItemEntity extends BaseEntity<ExplorerNav
16646
16724
  */
16647
16725
  Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
16648
16726
  /**
16727
+ * Validate() method override for Explorer Navigation Items entity. This is an auto-generated method that invokes the generated field validators for this entity for the following fields:
16728
+ * * Sequence: This rule ensures that the sequence must be greater than zero.
16729
+ * @public
16730
+ * @method
16731
+ * @override
16732
+ */
16733
+ Validate(): ValidationResult;
16734
+ /**
16735
+ * This rule ensures that the sequence must be greater than zero.
16736
+ * @param result - the ValidationResult object to add any errors or warnings to
16737
+ * @public
16738
+ * @method
16739
+ */
16740
+ ValidateSequence(result: ValidationResult): void;
16741
+ /**
16649
16742
  * * Field Name: ID
16650
16743
  * * Display Name: ID
16651
16744
  * * SQL Data Type: uniqueidentifier
@@ -17095,114 +17188,6 @@ export declare class FileEntity extends BaseEntity<FileEntityType> {
17095
17188
  */
17096
17189
  get Provider(): string;
17097
17190
  }
17098
- /**
17099
- * Flyway _schema _histories - strongly typed entity sub-class
17100
- * * Schema: __mj
17101
- * * Base Table: flyway_schema_history
17102
- * * Base View: vwFlyway_schema_histories
17103
- * * Primary Key: installed_rank
17104
- * @extends {BaseEntity}
17105
- * @class
17106
- * @public
17107
- */
17108
- export declare class flyway_schema_historyEntity extends BaseEntity<flyway_schema_historyEntityType> {
17109
- /**
17110
- * Loads the Flyway _schema _histories record from the database
17111
- * @param installed_rank: number - primary key value to load the Flyway _schema _histories record.
17112
- * @param EntityRelationshipsToLoad - (optional) the relationships to load
17113
- * @returns {Promise<boolean>} - true if successful, false otherwise
17114
- * @public
17115
- * @async
17116
- * @memberof flyway_schema_historyEntity
17117
- * @method
17118
- * @override
17119
- */
17120
- Load(installed_rank: number, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
17121
- /**
17122
- * * Field Name: installed_rank
17123
- * * Display Name: installed _rank
17124
- * * SQL Data Type: int
17125
- */
17126
- get installed_rank(): number;
17127
- /**
17128
- * * Field Name: version
17129
- * * Display Name: version
17130
- * * SQL Data Type: nvarchar(50)
17131
- */
17132
- get version(): string | null;
17133
- set version(value: string | null);
17134
- /**
17135
- * * Field Name: description
17136
- * * Display Name: description
17137
- * * SQL Data Type: nvarchar(200)
17138
- */
17139
- get description(): string | null;
17140
- set description(value: string | null);
17141
- /**
17142
- * * Field Name: type
17143
- * * Display Name: type
17144
- * * SQL Data Type: nvarchar(20)
17145
- */
17146
- get type(): string;
17147
- set type(value: string);
17148
- /**
17149
- * * Field Name: script
17150
- * * Display Name: script
17151
- * * SQL Data Type: nvarchar(1000)
17152
- */
17153
- get script(): string;
17154
- set script(value: string);
17155
- /**
17156
- * * Field Name: checksum
17157
- * * Display Name: checksum
17158
- * * SQL Data Type: int
17159
- */
17160
- get checksum(): number | null;
17161
- set checksum(value: number | null);
17162
- /**
17163
- * * Field Name: installed_by
17164
- * * Display Name: installed _by
17165
- * * SQL Data Type: nvarchar(100)
17166
- */
17167
- get installed_by(): string;
17168
- set installed_by(value: string);
17169
- /**
17170
- * * Field Name: installed_on
17171
- * * Display Name: installed _on
17172
- * * SQL Data Type: datetime
17173
- * * Default Value: getdate()
17174
- */
17175
- get installed_on(): Date;
17176
- set installed_on(value: Date);
17177
- /**
17178
- * * Field Name: execution_time
17179
- * * Display Name: execution _time
17180
- * * SQL Data Type: int
17181
- */
17182
- get execution_time(): number;
17183
- set execution_time(value: number);
17184
- /**
17185
- * * Field Name: success
17186
- * * Display Name: success
17187
- * * SQL Data Type: bit
17188
- */
17189
- get success(): boolean;
17190
- set success(value: boolean);
17191
- /**
17192
- * * Field Name: __mj_CreatedAt
17193
- * * Display Name: Created At
17194
- * * SQL Data Type: datetimeoffset
17195
- * * Default Value: getutcdate()
17196
- */
17197
- get __mj_CreatedAt(): Date;
17198
- /**
17199
- * * Field Name: __mj_UpdatedAt
17200
- * * Display Name: Updated At
17201
- * * SQL Data Type: datetimeoffset
17202
- * * Default Value: getutcdate()
17203
- */
17204
- get __mj_UpdatedAt(): Date;
17205
- }
17206
17191
  /**
17207
17192
  * Integration URL Formats - strongly typed entity sub-class
17208
17193
  * * Schema: __mj
@@ -19055,6 +19040,21 @@ export declare class RecommendationItemEntity extends BaseEntity<RecommendationI
19055
19040
  */
19056
19041
  Delete(): Promise<boolean>;
19057
19042
  /**
19043
+ * Validate() method override for Recommendation Items entity. This is an auto-generated method that invokes the generated field validators for this entity for the following fields:
19044
+ * * MatchProbability: This rule ensures that the match probability value is between 0 and 1, inclusive.
19045
+ * @public
19046
+ * @method
19047
+ * @override
19048
+ */
19049
+ Validate(): ValidationResult;
19050
+ /**
19051
+ * This rule ensures that the match probability value is between 0 and 1, inclusive.
19052
+ * @param result - the ValidationResult object to add any errors or warnings to
19053
+ * @public
19054
+ * @method
19055
+ */
19056
+ ValidateMatchProbability(result: ValidationResult): void;
19057
+ /**
19058
19058
  * * Field Name: ID
19059
19059
  * * Display Name: ID
19060
19060
  * * SQL Data Type: uniqueidentifier