@memberjunction/core-entities 5.27.0 → 5.28.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/engines/UserInfoEngine.d.ts +19 -0
- package/dist/engines/UserInfoEngine.d.ts.map +1 -1
- package/dist/engines/UserInfoEngine.js +27 -0
- package/dist/engines/UserInfoEngine.js.map +1 -1
- package/dist/generated/entity_subclasses.d.ts +80 -14
- package/dist/generated/entity_subclasses.d.ts.map +1 -1
- package/dist/generated/entity_subclasses.js +119 -19
- package/dist/generated/entity_subclasses.js.map +1 -1
- package/package.json +5 -5
|
@@ -15699,7 +15699,7 @@ export const MJIntegrationObjectFieldSchema = z.object({
|
|
|
15699
15699
|
* * Description: UI grouping category within the object`),
|
|
15700
15700
|
Type: z.string().describe(`
|
|
15701
15701
|
* * Field Name: Type
|
|
15702
|
-
* * Display Name: Type
|
|
15702
|
+
* * Display Name: Data Type
|
|
15703
15703
|
* * SQL Data Type: nvarchar(100)
|
|
15704
15704
|
* * Description: Data type of the field (e.g., nvarchar, int, datetime, decimal, bit). Uses same type vocabulary as EntityField.`),
|
|
15705
15705
|
Length: z.number().nullable().describe(`
|
|
@@ -15730,31 +15730,31 @@ export const MJIntegrationObjectFieldSchema = z.object({
|
|
|
15730
15730
|
* * Description: Default value from the source system`),
|
|
15731
15731
|
IsPrimaryKey: z.boolean().describe(`
|
|
15732
15732
|
* * Field Name: IsPrimaryKey
|
|
15733
|
-
* * Display Name: Primary Key
|
|
15733
|
+
* * Display Name: Is Primary Key
|
|
15734
15734
|
* * SQL Data Type: bit
|
|
15735
15735
|
* * Default Value: 0
|
|
15736
15736
|
* * Description: Whether this field is part of the object primary key`),
|
|
15737
15737
|
IsUniqueKey: z.boolean().describe(`
|
|
15738
15738
|
* * Field Name: IsUniqueKey
|
|
15739
|
-
* * Display Name: Unique Key
|
|
15739
|
+
* * Display Name: Is Unique Key
|
|
15740
15740
|
* * SQL Data Type: bit
|
|
15741
15741
|
* * Default Value: 0
|
|
15742
15742
|
* * Description: Whether values must be unique across all records`),
|
|
15743
15743
|
IsReadOnly: z.boolean().describe(`
|
|
15744
15744
|
* * Field Name: IsReadOnly
|
|
15745
|
-
* * Display Name: Read Only
|
|
15745
|
+
* * Display Name: Is Read Only
|
|
15746
15746
|
* * SQL Data Type: bit
|
|
15747
15747
|
* * Default Value: 0
|
|
15748
15748
|
* * Description: Whether this field cannot be written back to the source system`),
|
|
15749
15749
|
IsRequired: z.boolean().describe(`
|
|
15750
15750
|
* * Field Name: IsRequired
|
|
15751
|
-
* * Display Name: Required
|
|
15751
|
+
* * Display Name: Is Required
|
|
15752
15752
|
* * SQL Data Type: bit
|
|
15753
15753
|
* * Default Value: 0
|
|
15754
15754
|
* * Description: Whether this field is required for create/update operations`),
|
|
15755
15755
|
RelatedIntegrationObjectID: z.string().nullable().describe(`
|
|
15756
15756
|
* * Field Name: RelatedIntegrationObjectID
|
|
15757
|
-
* * Display Name: Related Integration Object
|
|
15757
|
+
* * Display Name: Related Integration Object ID
|
|
15758
15758
|
* * SQL Data Type: uniqueidentifier
|
|
15759
15759
|
* * Related Entity/Foreign Key: MJ: Integration Objects (vwIntegrationObjects.ID)
|
|
15760
15760
|
* * Description: Foreign key to another IntegrationObject, establishing a relationship. Used for DAG-based dependency ordering and template variable resolution in parent APIPath patterns.`),
|
|
@@ -15795,6 +15795,12 @@ export const MJIntegrationObjectFieldSchema = z.object({
|
|
|
15795
15795
|
* * Display Name: Updated At
|
|
15796
15796
|
* * SQL Data Type: datetimeoffset
|
|
15797
15797
|
* * Default Value: getutcdate()`),
|
|
15798
|
+
IsCustom: z.boolean().describe(`
|
|
15799
|
+
* * Field Name: IsCustom
|
|
15800
|
+
* * Display Name: Is Custom
|
|
15801
|
+
* * SQL Data Type: bit
|
|
15802
|
+
* * Default Value: 0
|
|
15803
|
+
* * Description: When true, this field was dynamically discovered by IntrospectSchema and is not defined in static connector metadata.`),
|
|
15798
15804
|
IntegrationObject: z.string().describe(`
|
|
15799
15805
|
* * Field Name: IntegrationObject
|
|
15800
15806
|
* * Display Name: Integration Object Name
|
|
@@ -15940,6 +15946,12 @@ export const MJIntegrationObjectSchema = z.object({
|
|
|
15940
15946
|
* * SQL Data Type: nvarchar(10)
|
|
15941
15947
|
* * Default Value: DELETE
|
|
15942
15948
|
* * Description: HTTP method for delete operations. Defaults to DELETE.`),
|
|
15949
|
+
IsCustom: z.boolean().describe(`
|
|
15950
|
+
* * Field Name: IsCustom
|
|
15951
|
+
* * Display Name: Is Custom
|
|
15952
|
+
* * SQL Data Type: bit
|
|
15953
|
+
* * Default Value: 0
|
|
15954
|
+
* * Description: When true, this object was dynamically discovered by IntrospectSchema and is not defined in static connector metadata.`),
|
|
15943
15955
|
Integration: z.string().describe(`
|
|
15944
15956
|
* * Field Name: Integration
|
|
15945
15957
|
* * Display Name: Integration Name
|
|
@@ -19113,7 +19125,7 @@ export const MJRecordChangeSchema = z.object({
|
|
|
19113
19125
|
* * Snapshot
|
|
19114
19126
|
* * Update
|
|
19115
19127
|
* * Description: Create, Update, or Delete`),
|
|
19116
|
-
Source: z.union([z.literal('External'), z.literal('Internal')]).describe(`
|
|
19128
|
+
Source: z.union([z.literal('External'), z.literal('Internal'), z.literal('Restore')]).describe(`
|
|
19117
19129
|
* * Field Name: Source
|
|
19118
19130
|
* * Display Name: Source
|
|
19119
19131
|
* * SQL Data Type: nvarchar(20)
|
|
@@ -19122,6 +19134,7 @@ export const MJRecordChangeSchema = z.object({
|
|
|
19122
19134
|
* * Possible Values
|
|
19123
19135
|
* * External
|
|
19124
19136
|
* * Internal
|
|
19137
|
+
* * Restore
|
|
19125
19138
|
* * Description: Internal or External`),
|
|
19126
19139
|
ChangedAt: z.date().describe(`
|
|
19127
19140
|
* * Field Name: ChangedAt
|
|
@@ -19141,7 +19154,7 @@ export const MJRecordChangeSchema = z.object({
|
|
|
19141
19154
|
* * Description: A generated, human-readable description of what was changed.`),
|
|
19142
19155
|
FullRecordJSON: z.string().describe(`
|
|
19143
19156
|
* * Field Name: FullRecordJSON
|
|
19144
|
-
* * Display Name: Full Record
|
|
19157
|
+
* * Display Name: Full Record JSON
|
|
19145
19158
|
* * SQL Data Type: nvarchar(MAX)
|
|
19146
19159
|
* * Description: A complete snapshot of the record AFTER the change was applied in a JSON format that can be parsed.`),
|
|
19147
19160
|
Status: z.union([z.literal('Complete'), z.literal('Error'), z.literal('Pending')]).describe(`
|
|
@@ -19186,9 +19199,20 @@ export const MJRecordChangeSchema = z.object({
|
|
|
19186
19199
|
* * SQL Data Type: datetimeoffset
|
|
19187
19200
|
* * Default Value: getutcdate()
|
|
19188
19201
|
* * Description: Field UpdatedAt for entity Record Changes.`),
|
|
19202
|
+
RestoredFromID: z.string().nullable().describe(`
|
|
19203
|
+
* * Field Name: RestoredFromID
|
|
19204
|
+
* * Display Name: Restored From ID
|
|
19205
|
+
* * SQL Data Type: uniqueidentifier
|
|
19206
|
+
* * Related Entity/Foreign Key: MJ: Record Changes (vwRecordChanges.ID)
|
|
19207
|
+
* * Description: When this RecordChange was produced by a restore operation, points at the historical RecordChange whose state was restored. NULL for ordinary changes. Together with Source='Restore' this builds the version-chain lineage for auditing and timeline navigation.`),
|
|
19208
|
+
RestoreReason: z.string().nullable().describe(`
|
|
19209
|
+
* * Field Name: RestoreReason
|
|
19210
|
+
* * Display Name: Restore Reason
|
|
19211
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
19212
|
+
* * Description: Optional user-entered explanation captured at restore time. Persisted for audit purposes (regulated industries often require a reason for every reversal). NULL when the user did not enter one or when the change was not a restore.`),
|
|
19189
19213
|
Entity: z.string().describe(`
|
|
19190
19214
|
* * Field Name: Entity
|
|
19191
|
-
* * Display Name: Entity
|
|
19215
|
+
* * Display Name: Entity Name
|
|
19192
19216
|
* * SQL Data Type: nvarchar(255)`),
|
|
19193
19217
|
User: z.string().describe(`
|
|
19194
19218
|
* * Field Name: User
|
|
@@ -19202,6 +19226,14 @@ export const MJRecordChangeSchema = z.object({
|
|
|
19202
19226
|
* * Field Name: Integration
|
|
19203
19227
|
* * Display Name: Integration
|
|
19204
19228
|
* * SQL Data Type: nvarchar(100)`),
|
|
19229
|
+
RestoredFrom: z.string().nullable().describe(`
|
|
19230
|
+
* * Field Name: RestoredFrom
|
|
19231
|
+
* * Display Name: Restored From
|
|
19232
|
+
* * SQL Data Type: nvarchar(750)`),
|
|
19233
|
+
RootRestoredFromID: z.string().nullable().describe(`
|
|
19234
|
+
* * Field Name: RootRestoredFromID
|
|
19235
|
+
* * Display Name: Root Restored From ID
|
|
19236
|
+
* * SQL Data Type: uniqueidentifier`),
|
|
19205
19237
|
});
|
|
19206
19238
|
/**
|
|
19207
19239
|
* zod schema definition for the entity MJ: Record Geo Codes
|
|
@@ -23796,7 +23828,7 @@ export const MJVersionLabelItemSchema = z.object({
|
|
|
23796
23828
|
RecordChange: z.string().describe(`
|
|
23797
23829
|
* * Field Name: RecordChange
|
|
23798
23830
|
* * Display Name: Record Change
|
|
23799
|
-
* * SQL Data Type: nvarchar(
|
|
23831
|
+
* * SQL Data Type: nvarchar(750)`),
|
|
23800
23832
|
Entity: z.string().describe(`
|
|
23801
23833
|
* * Field Name: Entity
|
|
23802
23834
|
* * Display Name: Entity
|
|
@@ -63830,7 +63862,7 @@ let MJIntegrationObjectFieldEntity = class MJIntegrationObjectFieldEntity extend
|
|
|
63830
63862
|
}
|
|
63831
63863
|
/**
|
|
63832
63864
|
* * Field Name: Type
|
|
63833
|
-
* * Display Name: Type
|
|
63865
|
+
* * Display Name: Data Type
|
|
63834
63866
|
* * SQL Data Type: nvarchar(100)
|
|
63835
63867
|
* * Description: Data type of the field (e.g., nvarchar, int, datetime, decimal, bit). Uses same type vocabulary as EntityField.
|
|
63836
63868
|
*/
|
|
@@ -63903,7 +63935,7 @@ let MJIntegrationObjectFieldEntity = class MJIntegrationObjectFieldEntity extend
|
|
|
63903
63935
|
}
|
|
63904
63936
|
/**
|
|
63905
63937
|
* * Field Name: IsPrimaryKey
|
|
63906
|
-
* * Display Name: Primary Key
|
|
63938
|
+
* * Display Name: Is Primary Key
|
|
63907
63939
|
* * SQL Data Type: bit
|
|
63908
63940
|
* * Default Value: 0
|
|
63909
63941
|
* * Description: Whether this field is part of the object primary key
|
|
@@ -63916,7 +63948,7 @@ let MJIntegrationObjectFieldEntity = class MJIntegrationObjectFieldEntity extend
|
|
|
63916
63948
|
}
|
|
63917
63949
|
/**
|
|
63918
63950
|
* * Field Name: IsUniqueKey
|
|
63919
|
-
* * Display Name: Unique Key
|
|
63951
|
+
* * Display Name: Is Unique Key
|
|
63920
63952
|
* * SQL Data Type: bit
|
|
63921
63953
|
* * Default Value: 0
|
|
63922
63954
|
* * Description: Whether values must be unique across all records
|
|
@@ -63929,7 +63961,7 @@ let MJIntegrationObjectFieldEntity = class MJIntegrationObjectFieldEntity extend
|
|
|
63929
63961
|
}
|
|
63930
63962
|
/**
|
|
63931
63963
|
* * Field Name: IsReadOnly
|
|
63932
|
-
* * Display Name: Read Only
|
|
63964
|
+
* * Display Name: Is Read Only
|
|
63933
63965
|
* * SQL Data Type: bit
|
|
63934
63966
|
* * Default Value: 0
|
|
63935
63967
|
* * Description: Whether this field cannot be written back to the source system
|
|
@@ -63942,7 +63974,7 @@ let MJIntegrationObjectFieldEntity = class MJIntegrationObjectFieldEntity extend
|
|
|
63942
63974
|
}
|
|
63943
63975
|
/**
|
|
63944
63976
|
* * Field Name: IsRequired
|
|
63945
|
-
* * Display Name: Required
|
|
63977
|
+
* * Display Name: Is Required
|
|
63946
63978
|
* * SQL Data Type: bit
|
|
63947
63979
|
* * Default Value: 0
|
|
63948
63980
|
* * Description: Whether this field is required for create/update operations
|
|
@@ -63955,7 +63987,7 @@ let MJIntegrationObjectFieldEntity = class MJIntegrationObjectFieldEntity extend
|
|
|
63955
63987
|
}
|
|
63956
63988
|
/**
|
|
63957
63989
|
* * Field Name: RelatedIntegrationObjectID
|
|
63958
|
-
* * Display Name: Related Integration Object
|
|
63990
|
+
* * Display Name: Related Integration Object ID
|
|
63959
63991
|
* * SQL Data Type: uniqueidentifier
|
|
63960
63992
|
* * Related Entity/Foreign Key: MJ: Integration Objects (vwIntegrationObjects.ID)
|
|
63961
63993
|
* * Description: Foreign key to another IntegrationObject, establishing a relationship. Used for DAG-based dependency ordering and template variable resolution in parent APIPath patterns.
|
|
@@ -64040,6 +64072,19 @@ let MJIntegrationObjectFieldEntity = class MJIntegrationObjectFieldEntity extend
|
|
|
64040
64072
|
return this.Get('__mj_UpdatedAt');
|
|
64041
64073
|
}
|
|
64042
64074
|
/**
|
|
64075
|
+
* * Field Name: IsCustom
|
|
64076
|
+
* * Display Name: Is Custom
|
|
64077
|
+
* * SQL Data Type: bit
|
|
64078
|
+
* * Default Value: 0
|
|
64079
|
+
* * Description: When true, this field was dynamically discovered by IntrospectSchema and is not defined in static connector metadata.
|
|
64080
|
+
*/
|
|
64081
|
+
get IsCustom() {
|
|
64082
|
+
return this.Get('IsCustom');
|
|
64083
|
+
}
|
|
64084
|
+
set IsCustom(value) {
|
|
64085
|
+
this.Set('IsCustom', value);
|
|
64086
|
+
}
|
|
64087
|
+
/**
|
|
64043
64088
|
* * Field Name: IntegrationObject
|
|
64044
64089
|
* * Display Name: Integration Object Name
|
|
64045
64090
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -64369,6 +64414,19 @@ let MJIntegrationObjectEntity = class MJIntegrationObjectEntity extends BaseEnti
|
|
|
64369
64414
|
this.Set('DeleteMethod', value);
|
|
64370
64415
|
}
|
|
64371
64416
|
/**
|
|
64417
|
+
* * Field Name: IsCustom
|
|
64418
|
+
* * Display Name: Is Custom
|
|
64419
|
+
* * SQL Data Type: bit
|
|
64420
|
+
* * Default Value: 0
|
|
64421
|
+
* * Description: When true, this object was dynamically discovered by IntrospectSchema and is not defined in static connector metadata.
|
|
64422
|
+
*/
|
|
64423
|
+
get IsCustom() {
|
|
64424
|
+
return this.Get('IsCustom');
|
|
64425
|
+
}
|
|
64426
|
+
set IsCustom(value) {
|
|
64427
|
+
this.Set('IsCustom', value);
|
|
64428
|
+
}
|
|
64429
|
+
/**
|
|
64372
64430
|
* * Field Name: Integration
|
|
64373
64431
|
* * Display Name: Integration Name
|
|
64374
64432
|
* * SQL Data Type: nvarchar(100)
|
|
@@ -72481,6 +72539,7 @@ let MJRecordChangeEntity = class MJRecordChangeEntity extends BaseEntity {
|
|
|
72481
72539
|
* * Possible Values
|
|
72482
72540
|
* * External
|
|
72483
72541
|
* * Internal
|
|
72542
|
+
* * Restore
|
|
72484
72543
|
* * Description: Internal or External
|
|
72485
72544
|
*/
|
|
72486
72545
|
get Source() {
|
|
@@ -72528,7 +72587,7 @@ let MJRecordChangeEntity = class MJRecordChangeEntity extends BaseEntity {
|
|
|
72528
72587
|
}
|
|
72529
72588
|
/**
|
|
72530
72589
|
* * Field Name: FullRecordJSON
|
|
72531
|
-
* * Display Name: Full Record
|
|
72590
|
+
* * Display Name: Full Record JSON
|
|
72532
72591
|
* * SQL Data Type: nvarchar(MAX)
|
|
72533
72592
|
* * Description: A complete snapshot of the record AFTER the change was applied in a JSON format that can be parsed.
|
|
72534
72593
|
*/
|
|
@@ -72624,8 +72683,33 @@ let MJRecordChangeEntity = class MJRecordChangeEntity extends BaseEntity {
|
|
|
72624
72683
|
return this.Get('UpdatedAt');
|
|
72625
72684
|
}
|
|
72626
72685
|
/**
|
|
72686
|
+
* * Field Name: RestoredFromID
|
|
72687
|
+
* * Display Name: Restored From ID
|
|
72688
|
+
* * SQL Data Type: uniqueidentifier
|
|
72689
|
+
* * Related Entity/Foreign Key: MJ: Record Changes (vwRecordChanges.ID)
|
|
72690
|
+
* * Description: When this RecordChange was produced by a restore operation, points at the historical RecordChange whose state was restored. NULL for ordinary changes. Together with Source='Restore' this builds the version-chain lineage for auditing and timeline navigation.
|
|
72691
|
+
*/
|
|
72692
|
+
get RestoredFromID() {
|
|
72693
|
+
return this.Get('RestoredFromID');
|
|
72694
|
+
}
|
|
72695
|
+
set RestoredFromID(value) {
|
|
72696
|
+
this.Set('RestoredFromID', value);
|
|
72697
|
+
}
|
|
72698
|
+
/**
|
|
72699
|
+
* * Field Name: RestoreReason
|
|
72700
|
+
* * Display Name: Restore Reason
|
|
72701
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
72702
|
+
* * Description: Optional user-entered explanation captured at restore time. Persisted for audit purposes (regulated industries often require a reason for every reversal). NULL when the user did not enter one or when the change was not a restore.
|
|
72703
|
+
*/
|
|
72704
|
+
get RestoreReason() {
|
|
72705
|
+
return this.Get('RestoreReason');
|
|
72706
|
+
}
|
|
72707
|
+
set RestoreReason(value) {
|
|
72708
|
+
this.Set('RestoreReason', value);
|
|
72709
|
+
}
|
|
72710
|
+
/**
|
|
72627
72711
|
* * Field Name: Entity
|
|
72628
|
-
* * Display Name: Entity
|
|
72712
|
+
* * Display Name: Entity Name
|
|
72629
72713
|
* * SQL Data Type: nvarchar(255)
|
|
72630
72714
|
*/
|
|
72631
72715
|
get Entity() {
|
|
@@ -72655,6 +72739,22 @@ let MJRecordChangeEntity = class MJRecordChangeEntity extends BaseEntity {
|
|
|
72655
72739
|
get Integration() {
|
|
72656
72740
|
return this.Get('Integration');
|
|
72657
72741
|
}
|
|
72742
|
+
/**
|
|
72743
|
+
* * Field Name: RestoredFrom
|
|
72744
|
+
* * Display Name: Restored From
|
|
72745
|
+
* * SQL Data Type: nvarchar(750)
|
|
72746
|
+
*/
|
|
72747
|
+
get RestoredFrom() {
|
|
72748
|
+
return this.Get('RestoredFrom');
|
|
72749
|
+
}
|
|
72750
|
+
/**
|
|
72751
|
+
* * Field Name: RootRestoredFromID
|
|
72752
|
+
* * Display Name: Root Restored From ID
|
|
72753
|
+
* * SQL Data Type: uniqueidentifier
|
|
72754
|
+
*/
|
|
72755
|
+
get RootRestoredFromID() {
|
|
72756
|
+
return this.Get('RootRestoredFromID');
|
|
72757
|
+
}
|
|
72658
72758
|
};
|
|
72659
72759
|
MJRecordChangeEntity = __decorate([
|
|
72660
72760
|
RegisterClass(BaseEntity, 'MJ: Record Changes')
|
|
@@ -84458,7 +84558,7 @@ let MJVersionLabelItemEntity = class MJVersionLabelItemEntity extends BaseEntity
|
|
|
84458
84558
|
/**
|
|
84459
84559
|
* * Field Name: RecordChange
|
|
84460
84560
|
* * Display Name: Record Change
|
|
84461
|
-
* * SQL Data Type: nvarchar(
|
|
84561
|
+
* * SQL Data Type: nvarchar(750)
|
|
84462
84562
|
*/
|
|
84463
84563
|
get RecordChange() {
|
|
84464
84564
|
return this.Get('RecordChange');
|