@memberjunction/core-entities 2.15.1 → 2.16.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.
@@ -4124,6 +4124,35 @@ export declare const QueryCategorySchema: z.ZodObject<{
4124
4124
  User?: string;
4125
4125
  }>;
4126
4126
  export type QueryCategoryEntityType = z.infer<typeof QueryCategorySchema>;
4127
+ /**
4128
+ * zod schema definition for the entity Query Entities
4129
+ */
4130
+ export declare const QueryEntitySchema: z.ZodObject<{
4131
+ ID: z.ZodString;
4132
+ QueryID: z.ZodString;
4133
+ EntityID: z.ZodString;
4134
+ __mj_CreatedAt: z.ZodDate;
4135
+ __mj_UpdatedAt: z.ZodDate;
4136
+ Query: z.ZodString;
4137
+ Entity: z.ZodString;
4138
+ }, "strip", z.ZodTypeAny, {
4139
+ ID?: string;
4140
+ __mj_CreatedAt?: Date;
4141
+ __mj_UpdatedAt?: Date;
4142
+ EntityID?: string;
4143
+ Entity?: string;
4144
+ QueryID?: string;
4145
+ Query?: string;
4146
+ }, {
4147
+ ID?: string;
4148
+ __mj_CreatedAt?: Date;
4149
+ __mj_UpdatedAt?: Date;
4150
+ EntityID?: string;
4151
+ Entity?: string;
4152
+ QueryID?: string;
4153
+ Query?: string;
4154
+ }>;
4155
+ export type QueryEntityEntityType = z.infer<typeof QueryEntitySchema>;
4127
4156
  /**
4128
4157
  * zod schema definition for the entity Query Fields
4129
4158
  */
@@ -6293,7 +6322,6 @@ export declare class ActionAuthorizationEntity extends BaseEntity<ActionAuthoriz
6293
6322
  * * Field Name: Authorization
6294
6323
  * * Display Name: Authorization
6295
6324
  * * SQL Data Type: nvarchar(100)
6296
- * * Default Value: null
6297
6325
  */
6298
6326
  get Authorization(): string;
6299
6327
  }
@@ -8176,7 +8204,6 @@ export declare class ApplicationSettingEntity extends BaseEntity<ApplicationSett
8176
8204
  * * Field Name: Application
8177
8205
  * * Display Name: Application
8178
8206
  * * SQL Data Type: nvarchar(100)
8179
- * * Default Value: null
8180
8207
  */
8181
8208
  get Application(): string;
8182
8209
  }
@@ -8356,7 +8383,6 @@ export declare class AuditLogTypeEntity extends BaseEntity<AuditLogTypeEntityTyp
8356
8383
  * * Field Name: Authorization
8357
8384
  * * Display Name: Authorization
8358
8385
  * * SQL Data Type: nvarchar(100)
8359
- * * Default Value: null
8360
8386
  */
8361
8387
  get Authorization(): string | null;
8362
8388
  }
@@ -8488,14 +8514,12 @@ export declare class AuditLogEntity extends BaseEntity<AuditLogEntityType> {
8488
8514
  * * Field Name: AuditLogType
8489
8515
  * * Display Name: Audit Log Type
8490
8516
  * * SQL Data Type: nvarchar(50)
8491
- * * Default Value: null
8492
8517
  */
8493
8518
  get AuditLogType(): string;
8494
8519
  /**
8495
8520
  * * Field Name: Authorization
8496
8521
  * * Display Name: Authorization
8497
8522
  * * SQL Data Type: nvarchar(100)
8498
- * * Default Value: null
8499
8523
  */
8500
8524
  get Authorization(): string | null;
8501
8525
  /**
@@ -8599,14 +8623,12 @@ export declare class AuthorizationRoleEntity extends BaseEntity<AuthorizationRol
8599
8623
  * * Field Name: Authorization
8600
8624
  * * Display Name: Authorization
8601
8625
  * * SQL Data Type: nvarchar(100)
8602
- * * Default Value: null
8603
8626
  */
8604
8627
  get Authorization(): string;
8605
8628
  /**
8606
8629
  * * Field Name: Role
8607
8630
  * * Display Name: Role
8608
8631
  * * SQL Data Type: nvarchar(50)
8609
- * * Default Value: null
8610
8632
  */
8611
8633
  get Role(): string;
8612
8634
  }
@@ -10317,28 +10339,24 @@ export declare class ContentItemEntity extends BaseEntity<ContentItemEntityType>
10317
10339
  * * Field Name: ContentSource
10318
10340
  * * Display Name: Content Source
10319
10341
  * * SQL Data Type: nvarchar(255)
10320
- * * Default Value: null
10321
10342
  */
10322
10343
  get ContentSource(): string | null;
10323
10344
  /**
10324
10345
  * * Field Name: ContentType
10325
10346
  * * Display Name: Content Type
10326
10347
  * * SQL Data Type: nvarchar(255)
10327
- * * Default Value: null
10328
10348
  */
10329
10349
  get ContentType(): string;
10330
10350
  /**
10331
10351
  * * Field Name: ContentSourceType
10332
10352
  * * Display Name: Content Source Type
10333
10353
  * * SQL Data Type: nvarchar(255)
10334
- * * Default Value: null
10335
10354
  */
10336
10355
  get ContentSourceType(): string;
10337
10356
  /**
10338
10357
  * * Field Name: ContentFileType
10339
10358
  * * Display Name: Content File Type
10340
10359
  * * SQL Data Type: nvarchar(255)
10341
- * * Default Value: null
10342
10360
  */
10343
10361
  get ContentFileType(): string;
10344
10362
  }
@@ -10727,21 +10745,18 @@ export declare class ContentSourceEntity extends BaseEntity<ContentSourceEntityT
10727
10745
  * * Field Name: ContentType
10728
10746
  * * Display Name: Content Type
10729
10747
  * * SQL Data Type: nvarchar(255)
10730
- * * Default Value: null
10731
10748
  */
10732
10749
  get ContentType(): string;
10733
10750
  /**
10734
10751
  * * Field Name: ContentSourceType
10735
10752
  * * Display Name: Content Source Type
10736
10753
  * * SQL Data Type: nvarchar(255)
10737
- * * Default Value: null
10738
10754
  */
10739
10755
  get ContentSourceType(): string;
10740
10756
  /**
10741
10757
  * * Field Name: ContentFileType
10742
10758
  * * Display Name: Content File Type
10743
10759
  * * SQL Data Type: nvarchar(255)
10744
- * * Default Value: null
10745
10760
  */
10746
10761
  get ContentFileType(): string;
10747
10762
  }
@@ -11166,7 +11181,6 @@ export declare class ConversationEntity extends BaseEntity<ConversationEntityTyp
11166
11181
  * * Field Name: DataContext
11167
11182
  * * Display Name: Data Context
11168
11183
  * * SQL Data Type: nvarchar(255)
11169
- * * Default Value: null
11170
11184
  */
11171
11185
  get DataContext(): string | null;
11172
11186
  }
@@ -11709,7 +11723,6 @@ export declare class DatasetItemEntity extends BaseEntity<DatasetItemEntityType>
11709
11723
  * * Field Name: Dataset
11710
11724
  * * Display Name: Dataset
11711
11725
  * * SQL Data Type: nvarchar(100)
11712
- * * Default Value: null
11713
11726
  */
11714
11727
  get Dataset(): string;
11715
11728
  /**
@@ -14206,21 +14219,18 @@ export declare class EntityDocumentEntity extends BaseEntity<EntityDocumentEntit
14206
14219
  * * Field Name: VectorDatabase
14207
14220
  * * Display Name: Vector Database
14208
14221
  * * SQL Data Type: nvarchar(100)
14209
- * * Default Value: null
14210
14222
  */
14211
14223
  get VectorDatabase(): string;
14212
14224
  /**
14213
14225
  * * Field Name: Template
14214
14226
  * * Display Name: Template
14215
14227
  * * SQL Data Type: nvarchar(255)
14216
- * * Default Value: null
14217
14228
  */
14218
14229
  get Template(): string;
14219
14230
  /**
14220
14231
  * * Field Name: AIModel
14221
14232
  * * Display Name: AIModel
14222
14233
  * * SQL Data Type: nvarchar(50)
14223
- * * Default Value: null
14224
14234
  */
14225
14235
  get AIModel(): string;
14226
14236
  }
@@ -15059,21 +15069,18 @@ export declare class EntityRecordDocumentEntity extends BaseEntity<EntityRecordD
15059
15069
  * * Field Name: Entity
15060
15070
  * * Display Name: Entity
15061
15071
  * * SQL Data Type: nvarchar(255)
15062
- * * Default Value: null
15063
15072
  */
15064
15073
  get Entity(): string;
15065
15074
  /**
15066
15075
  * * Field Name: EntityDocument
15067
15076
  * * Display Name: Entity Document
15068
15077
  * * SQL Data Type: nvarchar(250)
15069
- * * Default Value: null
15070
15078
  */
15071
15079
  get EntityDocument(): string;
15072
15080
  /**
15073
15081
  * * Field Name: VectorIndex
15074
15082
  * * Display Name: Vector Index
15075
15083
  * * SQL Data Type: nvarchar(255)
15076
- * * Default Value: null
15077
15084
  */
15078
15085
  get VectorIndex(): string;
15079
15086
  }
@@ -16703,14 +16710,12 @@ export declare class ListCategoryEntity extends BaseEntity<ListCategoryEntityTyp
16703
16710
  * * Field Name: Parent
16704
16711
  * * Display Name: Parent
16705
16712
  * * SQL Data Type: nvarchar(100)
16706
- * * Default Value: null
16707
16713
  */
16708
16714
  get Parent(): string | null;
16709
16715
  /**
16710
16716
  * * Field Name: User
16711
16717
  * * Display Name: User
16712
16718
  * * SQL Data Type: nvarchar(100)
16713
- * * Default Value: null
16714
16719
  */
16715
16720
  get User(): string;
16716
16721
  }
@@ -16924,7 +16929,6 @@ export declare class ListEntity extends BaseEntity<ListEntityType> {
16924
16929
  * * Field Name: Category
16925
16930
  * * Display Name: Category
16926
16931
  * * SQL Data Type: nvarchar(100)
16927
- * * Default Value: null
16928
16932
  */
16929
16933
  get Category(): string | null;
16930
16934
  }
@@ -17402,6 +17406,85 @@ export declare class QueryCategoryEntity extends BaseEntity<QueryCategoryEntityT
17402
17406
  */
17403
17407
  get User(): string;
17404
17408
  }
17409
+ /**
17410
+ * Query Entities - strongly typed entity sub-class
17411
+ * * Schema: __mj
17412
+ * * Base Table: QueryEntity
17413
+ * * Base View: vwQueryEntities
17414
+ * * @description Tracks which entities are involved in a given query. The Queries table stores SQL and descriptions for stored queries that can be executed and serve as examples for AI.
17415
+ * * Primary Key: ID
17416
+ * @extends {BaseEntity}
17417
+ * @class
17418
+ * @public
17419
+ */
17420
+ export declare class QueryEntityEntity extends BaseEntity<QueryEntityEntityType> {
17421
+ /**
17422
+ * Loads the Query Entities record from the database
17423
+ * @param ID: string - primary key value to load the Query Entities record.
17424
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
17425
+ * @returns {Promise<boolean>} - true if successful, false otherwise
17426
+ * @public
17427
+ * @async
17428
+ * @memberof QueryEntityEntity
17429
+ * @method
17430
+ * @override
17431
+ */
17432
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
17433
+ /**
17434
+ * * Field Name: ID
17435
+ * * Display Name: ID
17436
+ * * SQL Data Type: uniqueidentifier
17437
+ * * Default Value: newsequentialid()
17438
+ * * Description: Unique identifier for the QueryEntity record.
17439
+ */
17440
+ get ID(): string;
17441
+ /**
17442
+ * * Field Name: QueryID
17443
+ * * Display Name: Query ID
17444
+ * * SQL Data Type: uniqueidentifier
17445
+ * * Related Entity/Foreign Key: Queries (vwQueries.ID)
17446
+ * * Description: References the ID of the query in the Queries table.
17447
+ */
17448
+ get QueryID(): string;
17449
+ set QueryID(value: string);
17450
+ /**
17451
+ * * Field Name: EntityID
17452
+ * * Display Name: Entity ID
17453
+ * * SQL Data Type: uniqueidentifier
17454
+ * * Related Entity/Foreign Key: Entities (vwEntities.ID)
17455
+ * * Description: References the ID of the entity in the Entities table.
17456
+ */
17457
+ get EntityID(): string;
17458
+ set EntityID(value: string);
17459
+ /**
17460
+ * * Field Name: __mj_CreatedAt
17461
+ * * Display Name: Created At
17462
+ * * SQL Data Type: datetimeoffset
17463
+ * * Default Value: getutcdate()
17464
+ */
17465
+ get __mj_CreatedAt(): Date;
17466
+ /**
17467
+ * * Field Name: __mj_UpdatedAt
17468
+ * * Display Name: Updated At
17469
+ * * SQL Data Type: datetimeoffset
17470
+ * * Default Value: getutcdate()
17471
+ */
17472
+ get __mj_UpdatedAt(): Date;
17473
+ /**
17474
+ * * Field Name: Query
17475
+ * * Display Name: Query
17476
+ * * SQL Data Type: nvarchar(255)
17477
+ * * Default Value: null
17478
+ */
17479
+ get Query(): string;
17480
+ /**
17481
+ * * Field Name: Entity
17482
+ * * Display Name: Entity
17483
+ * * SQL Data Type: nvarchar(255)
17484
+ * * Default Value: null
17485
+ */
17486
+ get Entity(): string;
17487
+ }
17405
17488
  /**
17406
17489
  * Query Fields - strongly typed entity sub-class
17407
17490
  * * Schema: __mj
@@ -17631,14 +17714,12 @@ export declare class QueryPermissionEntity extends BaseEntity<QueryPermissionEnt
17631
17714
  * * Field Name: Query
17632
17715
  * * Display Name: Query
17633
17716
  * * SQL Data Type: nvarchar(255)
17634
- * * Default Value: null
17635
17717
  */
17636
17718
  get Query(): string;
17637
17719
  /**
17638
17720
  * * Field Name: Role
17639
17721
  * * Display Name: Role
17640
17722
  * * SQL Data Type: nvarchar(50)
17641
- * * Default Value: null
17642
17723
  */
17643
17724
  get Role(): string;
17644
17725
  }
@@ -18955,7 +19036,6 @@ export declare class RecordMergeLogEntity extends BaseEntity<RecordMergeLogEntit
18955
19036
  * * Field Name: ApprovedByUser
18956
19037
  * * Display Name: Approved By User
18957
19038
  * * SQL Data Type: nvarchar(100)
18958
- * * Default Value: null
18959
19039
  */
18960
19040
  get ApprovedByUser(): string | null;
18961
19041
  }
@@ -19951,14 +20031,12 @@ export declare class ScheduledActionParamEntity extends BaseEntity<ScheduledActi
19951
20031
  * * Field Name: ScheduledAction
19952
20032
  * * Display Name: Scheduled Action
19953
20033
  * * SQL Data Type: nvarchar(255)
19954
- * * Default Value: null
19955
20034
  */
19956
20035
  get ScheduledAction(): string;
19957
20036
  /**
19958
20037
  * * Field Name: ActionParam
19959
20038
  * * Display Name: Action Param
19960
20039
  * * SQL Data Type: nvarchar(255)
19961
- * * Default Value: null
19962
20040
  */
19963
20041
  get ActionParam(): string;
19964
20042
  }
@@ -20126,14 +20204,12 @@ export declare class ScheduledActionEntity extends BaseEntity<ScheduledActionEnt
20126
20204
  * * Field Name: CreatedByUser
20127
20205
  * * Display Name: Created By User
20128
20206
  * * SQL Data Type: nvarchar(100)
20129
- * * Default Value: null
20130
20207
  */
20131
20208
  get CreatedByUser(): string;
20132
20209
  /**
20133
20210
  * * Field Name: Action
20134
20211
  * * Display Name: Action
20135
20212
  * * SQL Data Type: nvarchar(425)
20136
- * * Default Value: null
20137
20213
  */
20138
20214
  get Action(): string;
20139
20215
  }
@@ -21765,7 +21841,6 @@ export declare class UserViewCategoryEntity extends BaseEntity<UserViewCategoryE
21765
21841
  * * Field Name: Entity
21766
21842
  * * Display Name: Entity
21767
21843
  * * SQL Data Type: nvarchar(255)
21768
- * * Default Value: null
21769
21844
  */
21770
21845
  get Entity(): string;
21771
21846
  /**