@mj-biz-apps/common-entities 5.26.1 → 5.27.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.
@@ -2,7 +2,7 @@ import { BaseEntity, ValidationResult } from "@memberjunction/core";
2
2
  import { z } from "zod";
3
3
  export declare const loadModule: () => void;
4
4
  /**
5
- * zod schema definition for the entity MJ.BizApps.Common: Address Links
5
+ * zod schema definition for the entity MJ_BizApps_Common: Address Links
6
6
  */
7
7
  export declare const mjBizAppsCommonAddressLinkSchema: z.ZodObject<{
8
8
  ID: z.ZodString;
@@ -46,7 +46,7 @@ export declare const mjBizAppsCommonAddressLinkSchema: z.ZodObject<{
46
46
  }>;
47
47
  export type mjBizAppsCommonAddressLinkEntityType = z.infer<typeof mjBizAppsCommonAddressLinkSchema>;
48
48
  /**
49
- * zod schema definition for the entity MJ.BizApps.Common: Address Types
49
+ * zod schema definition for the entity MJ_BizApps_Common: Address Types
50
50
  */
51
51
  export declare const mjBizAppsCommonAddressTypeSchema: z.ZodObject<{
52
52
  ID: z.ZodString;
@@ -78,7 +78,7 @@ export declare const mjBizAppsCommonAddressTypeSchema: z.ZodObject<{
78
78
  }>;
79
79
  export type mjBizAppsCommonAddressTypeEntityType = z.infer<typeof mjBizAppsCommonAddressTypeSchema>;
80
80
  /**
81
- * zod schema definition for the entity MJ.BizApps.Common: Addresses
81
+ * zod schema definition for the entity MJ_BizApps_Common: Addresses
82
82
  */
83
83
  export declare const mjBizAppsCommonAddressSchema: z.ZodObject<{
84
84
  ID: z.ZodString;
@@ -122,7 +122,7 @@ export declare const mjBizAppsCommonAddressSchema: z.ZodObject<{
122
122
  }>;
123
123
  export type mjBizAppsCommonAddressEntityType = z.infer<typeof mjBizAppsCommonAddressSchema>;
124
124
  /**
125
- * zod schema definition for the entity MJ.BizApps.Common: Contact Methods
125
+ * zod schema definition for the entity MJ_BizApps_Common: Contact Methods
126
126
  */
127
127
  export declare const mjBizAppsCommonContactMethodSchema: z.ZodObject<{
128
128
  ID: z.ZodString;
@@ -166,7 +166,7 @@ export declare const mjBizAppsCommonContactMethodSchema: z.ZodObject<{
166
166
  }>;
167
167
  export type mjBizAppsCommonContactMethodEntityType = z.infer<typeof mjBizAppsCommonContactMethodSchema>;
168
168
  /**
169
- * zod schema definition for the entity MJ.BizApps.Common: Contact Types
169
+ * zod schema definition for the entity MJ_BizApps_Common: Contact Types
170
170
  */
171
171
  export declare const mjBizAppsCommonContactTypeSchema: z.ZodObject<{
172
172
  ID: z.ZodString;
@@ -198,7 +198,7 @@ export declare const mjBizAppsCommonContactTypeSchema: z.ZodObject<{
198
198
  }>;
199
199
  export type mjBizAppsCommonContactTypeEntityType = z.infer<typeof mjBizAppsCommonContactTypeSchema>;
200
200
  /**
201
- * zod schema definition for the entity MJ.BizApps.Common: Organization Types
201
+ * zod schema definition for the entity MJ_BizApps_Common: Organization Types
202
202
  */
203
203
  export declare const mjBizAppsCommonOrganizationTypeSchema: z.ZodObject<{
204
204
  ID: z.ZodString;
@@ -230,7 +230,7 @@ export declare const mjBizAppsCommonOrganizationTypeSchema: z.ZodObject<{
230
230
  }>;
231
231
  export type mjBizAppsCommonOrganizationTypeEntityType = z.infer<typeof mjBizAppsCommonOrganizationTypeSchema>;
232
232
  /**
233
- * zod schema definition for the entity MJ.BizApps.Common: Organizations
233
+ * zod schema definition for the entity MJ_BizApps_Common: Organizations
234
234
  */
235
235
  export declare const mjBizAppsCommonOrganizationSchema: z.ZodObject<{
236
236
  ID: z.ZodString;
@@ -251,17 +251,6 @@ export declare const mjBizAppsCommonOrganizationSchema: z.ZodObject<{
251
251
  OrganizationType: z.ZodNullable<z.ZodString>;
252
252
  Parent: z.ZodNullable<z.ZodString>;
253
253
  RootParentID: z.ZodNullable<z.ZodString>;
254
- PrimaryAddressLine1: z.ZodNullable<z.ZodString>;
255
- PrimaryAddressLine2: z.ZodNullable<z.ZodString>;
256
- PrimaryAddressCity: z.ZodNullable<z.ZodString>;
257
- PrimaryAddressState: z.ZodNullable<z.ZodString>;
258
- PrimaryAddressPostalCode: z.ZodNullable<z.ZodString>;
259
- PrimaryAddressCountry: z.ZodNullable<z.ZodString>;
260
- PrimaryAddressType: z.ZodNullable<z.ZodString>;
261
- PrimaryEmail: z.ZodNullable<z.ZodString>;
262
- PrimaryPhone: z.ZodNullable<z.ZodString>;
263
- ActivePersonCount: z.ZodNullable<z.ZodNumber>;
264
- ChildOrgCount: z.ZodNullable<z.ZodNumber>;
265
254
  }, "strip", z.ZodTypeAny, {
266
255
  ID?: string;
267
256
  __mj_CreatedAt?: Date;
@@ -281,17 +270,6 @@ export declare const mjBizAppsCommonOrganizationSchema: z.ZodObject<{
281
270
  OrganizationType?: string;
282
271
  Parent?: string;
283
272
  RootParentID?: string;
284
- PrimaryAddressLine1?: string;
285
- PrimaryAddressLine2?: string;
286
- PrimaryAddressCity?: string;
287
- PrimaryAddressState?: string;
288
- PrimaryAddressPostalCode?: string;
289
- PrimaryAddressCountry?: string;
290
- PrimaryAddressType?: string;
291
- PrimaryEmail?: string;
292
- PrimaryPhone?: string;
293
- ActivePersonCount?: number;
294
- ChildOrgCount?: number;
295
273
  }, {
296
274
  ID?: string;
297
275
  __mj_CreatedAt?: Date;
@@ -311,21 +289,10 @@ export declare const mjBizAppsCommonOrganizationSchema: z.ZodObject<{
311
289
  OrganizationType?: string;
312
290
  Parent?: string;
313
291
  RootParentID?: string;
314
- PrimaryAddressLine1?: string;
315
- PrimaryAddressLine2?: string;
316
- PrimaryAddressCity?: string;
317
- PrimaryAddressState?: string;
318
- PrimaryAddressPostalCode?: string;
319
- PrimaryAddressCountry?: string;
320
- PrimaryAddressType?: string;
321
- PrimaryEmail?: string;
322
- PrimaryPhone?: string;
323
- ActivePersonCount?: number;
324
- ChildOrgCount?: number;
325
292
  }>;
326
293
  export type mjBizAppsCommonOrganizationEntityType = z.infer<typeof mjBizAppsCommonOrganizationSchema>;
327
294
  /**
328
- * zod schema definition for the entity MJ.BizApps.Common: People
295
+ * zod schema definition for the entity MJ_BizApps_Common: People
329
296
  */
330
297
  export declare const mjBizAppsCommonPersonSchema: z.ZodObject<{
331
298
  ID: z.ZodString;
@@ -347,21 +314,6 @@ export declare const mjBizAppsCommonPersonSchema: z.ZodObject<{
347
314
  __mj_CreatedAt: z.ZodDate;
348
315
  __mj_UpdatedAt: z.ZodDate;
349
316
  LinkedUser: z.ZodNullable<z.ZodString>;
350
- DisplayName: z.ZodNullable<z.ZodString>;
351
- PrimaryAddressLine1: z.ZodNullable<z.ZodString>;
352
- PrimaryAddressLine2: z.ZodNullable<z.ZodString>;
353
- PrimaryAddressCity: z.ZodNullable<z.ZodString>;
354
- PrimaryAddressState: z.ZodNullable<z.ZodString>;
355
- PrimaryAddressPostalCode: z.ZodNullable<z.ZodString>;
356
- PrimaryAddressCountry: z.ZodNullable<z.ZodString>;
357
- PrimaryAddressLatitude: z.ZodNullable<z.ZodNumber>;
358
- PrimaryAddressLongitude: z.ZodNullable<z.ZodNumber>;
359
- PrimaryAddressType: z.ZodNullable<z.ZodString>;
360
- PrimaryEmail: z.ZodNullable<z.ZodString>;
361
- PrimaryPhone: z.ZodNullable<z.ZodString>;
362
- CurrentOrganizationID: z.ZodNullable<z.ZodString>;
363
- CurrentOrganizationName: z.ZodNullable<z.ZodString>;
364
- CurrentJobTitle: z.ZodNullable<z.ZodString>;
365
317
  }, "strip", z.ZodTypeAny, {
366
318
  ID?: string;
367
319
  __mj_CreatedAt?: Date;
@@ -369,15 +321,6 @@ export declare const mjBizAppsCommonPersonSchema: z.ZodObject<{
369
321
  Email?: string;
370
322
  Phone?: string;
371
323
  Status?: "Active" | "Inactive" | "Deceased";
372
- PrimaryAddressLine1?: string;
373
- PrimaryAddressLine2?: string;
374
- PrimaryAddressCity?: string;
375
- PrimaryAddressState?: string;
376
- PrimaryAddressPostalCode?: string;
377
- PrimaryAddressCountry?: string;
378
- PrimaryAddressType?: string;
379
- PrimaryEmail?: string;
380
- PrimaryPhone?: string;
381
324
  FirstName?: string;
382
325
  LastName?: string;
383
326
  MiddleName?: string;
@@ -391,12 +334,6 @@ export declare const mjBizAppsCommonPersonSchema: z.ZodObject<{
391
334
  Bio?: string;
392
335
  LinkedUserID?: string;
393
336
  LinkedUser?: string;
394
- DisplayName?: string;
395
- PrimaryAddressLatitude?: number;
396
- PrimaryAddressLongitude?: number;
397
- CurrentOrganizationID?: string;
398
- CurrentOrganizationName?: string;
399
- CurrentJobTitle?: string;
400
337
  }, {
401
338
  ID?: string;
402
339
  __mj_CreatedAt?: Date;
@@ -404,15 +341,6 @@ export declare const mjBizAppsCommonPersonSchema: z.ZodObject<{
404
341
  Email?: string;
405
342
  Phone?: string;
406
343
  Status?: "Active" | "Inactive" | "Deceased";
407
- PrimaryAddressLine1?: string;
408
- PrimaryAddressLine2?: string;
409
- PrimaryAddressCity?: string;
410
- PrimaryAddressState?: string;
411
- PrimaryAddressPostalCode?: string;
412
- PrimaryAddressCountry?: string;
413
- PrimaryAddressType?: string;
414
- PrimaryEmail?: string;
415
- PrimaryPhone?: string;
416
344
  FirstName?: string;
417
345
  LastName?: string;
418
346
  MiddleName?: string;
@@ -426,16 +354,10 @@ export declare const mjBizAppsCommonPersonSchema: z.ZodObject<{
426
354
  Bio?: string;
427
355
  LinkedUserID?: string;
428
356
  LinkedUser?: string;
429
- DisplayName?: string;
430
- PrimaryAddressLatitude?: number;
431
- PrimaryAddressLongitude?: number;
432
- CurrentOrganizationID?: string;
433
- CurrentOrganizationName?: string;
434
- CurrentJobTitle?: string;
435
357
  }>;
436
358
  export type mjBizAppsCommonPersonEntityType = z.infer<typeof mjBizAppsCommonPersonSchema>;
437
359
  /**
438
- * zod schema definition for the entity MJ.BizApps.Common: Relationship Types
360
+ * zod schema definition for the entity MJ_BizApps_Common: Relationship Types
439
361
  */
440
362
  export declare const mjBizAppsCommonRelationshipTypeSchema: z.ZodObject<{
441
363
  ID: z.ZodString;
@@ -473,7 +395,7 @@ export declare const mjBizAppsCommonRelationshipTypeSchema: z.ZodObject<{
473
395
  }>;
474
396
  export type mjBizAppsCommonRelationshipTypeEntityType = z.infer<typeof mjBizAppsCommonRelationshipTypeSchema>;
475
397
  /**
476
- * zod schema definition for the entity MJ.BizApps.Common: Relationships
398
+ * zod schema definition for the entity MJ_BizApps_Common: Relationships
477
399
  */
478
400
  export declare const mjBizAppsCommonRelationshipSchema: z.ZodObject<{
479
401
  ID: z.ZodString;
@@ -535,7 +457,7 @@ export declare const mjBizAppsCommonRelationshipSchema: z.ZodObject<{
535
457
  }>;
536
458
  export type mjBizAppsCommonRelationshipEntityType = z.infer<typeof mjBizAppsCommonRelationshipSchema>;
537
459
  /**
538
- * MJ.BizApps.Common: Address Links - strongly typed entity sub-class
460
+ * MJ_BizApps_Common: Address Links - strongly typed entity sub-class
539
461
  * * Schema: __mj_BizAppsCommon
540
462
  * * Base Table: AddressLink
541
463
  * * Base View: vwAddressLinks
@@ -547,8 +469,8 @@ export type mjBizAppsCommonRelationshipEntityType = z.infer<typeof mjBizAppsComm
547
469
  */
548
470
  export declare class mjBizAppsCommonAddressLinkEntity extends BaseEntity<mjBizAppsCommonAddressLinkEntityType> {
549
471
  /**
550
- * Loads the MJ.BizApps.Common: Address Links record from the database
551
- * @param ID: string - primary key value to load the MJ.BizApps.Common: Address Links record.
472
+ * Loads the MJ_BizApps_Common: Address Links record from the database
473
+ * @param ID: string - primary key value to load the MJ_BizApps_Common: Address Links record.
552
474
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
553
475
  * @returns {Promise<boolean>} - true if successful, false otherwise
554
476
  * @public
@@ -570,7 +492,7 @@ export declare class mjBizAppsCommonAddressLinkEntity extends BaseEntity<mjBizAp
570
492
  * * Field Name: AddressID
571
493
  * * Display Name: Address
572
494
  * * SQL Data Type: uniqueidentifier
573
- * * Related Entity/Foreign Key: MJ.BizApps.Common: Addresses (vwAddresses.ID)
495
+ * * Related Entity/Foreign Key: MJ_BizApps_Common: Addresses (vwAddresses.ID)
574
496
  */
575
497
  get AddressID(): string;
576
498
  set AddressID(value: string);
@@ -594,7 +516,7 @@ export declare class mjBizAppsCommonAddressLinkEntity extends BaseEntity<mjBizAp
594
516
  * * Field Name: AddressTypeID
595
517
  * * Display Name: Address Type
596
518
  * * SQL Data Type: uniqueidentifier
597
- * * Related Entity/Foreign Key: MJ.BizApps.Common: Address Types (vwAddressTypes.ID)
519
+ * * Related Entity/Foreign Key: MJ_BizApps_Common: Address Types (vwAddressTypes.ID)
598
520
  */
599
521
  get AddressTypeID(): string;
600
522
  set AddressTypeID(value: string);
@@ -631,7 +553,7 @@ export declare class mjBizAppsCommonAddressLinkEntity extends BaseEntity<mjBizAp
631
553
  get __mj_UpdatedAt(): Date;
632
554
  /**
633
555
  * * Field Name: Address
634
- * * Display Name: Address Summary
556
+ * * Display Name: Address
635
557
  * * SQL Data Type: nvarchar(255)
636
558
  */
637
559
  get Address(): string;
@@ -649,7 +571,7 @@ export declare class mjBizAppsCommonAddressLinkEntity extends BaseEntity<mjBizAp
649
571
  get AddressType(): string;
650
572
  }
651
573
  /**
652
- * MJ.BizApps.Common: Address Types - strongly typed entity sub-class
574
+ * MJ_BizApps_Common: Address Types - strongly typed entity sub-class
653
575
  * * Schema: __mj_BizAppsCommon
654
576
  * * Base Table: AddressType
655
577
  * * Base View: vwAddressTypes
@@ -661,8 +583,8 @@ export declare class mjBizAppsCommonAddressLinkEntity extends BaseEntity<mjBizAp
661
583
  */
662
584
  export declare class mjBizAppsCommonAddressTypeEntity extends BaseEntity<mjBizAppsCommonAddressTypeEntityType> {
663
585
  /**
664
- * Loads the MJ.BizApps.Common: Address Types record from the database
665
- * @param ID: string - primary key value to load the MJ.BizApps.Common: Address Types record.
586
+ * Loads the MJ_BizApps_Common: Address Types record from the database
587
+ * @param ID: string - primary key value to load the MJ_BizApps_Common: Address Types record.
666
588
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
667
589
  * @returns {Promise<boolean>} - true if successful, false otherwise
668
590
  * @public
@@ -738,7 +660,7 @@ export declare class mjBizAppsCommonAddressTypeEntity extends BaseEntity<mjBizAp
738
660
  get __mj_UpdatedAt(): Date;
739
661
  }
740
662
  /**
741
- * MJ.BizApps.Common: Addresses - strongly typed entity sub-class
663
+ * MJ_BizApps_Common: Addresses - strongly typed entity sub-class
742
664
  * * Schema: __mj_BizAppsCommon
743
665
  * * Base Table: Address
744
666
  * * Base View: vwAddresses
@@ -750,8 +672,8 @@ export declare class mjBizAppsCommonAddressTypeEntity extends BaseEntity<mjBizAp
750
672
  */
751
673
  export declare class mjBizAppsCommonAddressEntity extends BaseEntity<mjBizAppsCommonAddressEntityType> {
752
674
  /**
753
- * Loads the MJ.BizApps.Common: Addresses record from the database
754
- * @param ID: string - primary key value to load the MJ.BizApps.Common: Addresses record.
675
+ * Loads the MJ_BizApps_Common: Addresses record from the database
676
+ * @param ID: string - primary key value to load the MJ_BizApps_Common: Addresses record.
755
677
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
756
678
  * @returns {Promise<boolean>} - true if successful, false otherwise
757
679
  * @public
@@ -858,7 +780,7 @@ export declare class mjBizAppsCommonAddressEntity extends BaseEntity<mjBizAppsCo
858
780
  get __mj_UpdatedAt(): Date;
859
781
  }
860
782
  /**
861
- * MJ.BizApps.Common: Contact Methods - strongly typed entity sub-class
783
+ * MJ_BizApps_Common: Contact Methods - strongly typed entity sub-class
862
784
  * * Schema: __mj_BizAppsCommon
863
785
  * * Base Table: ContactMethod
864
786
  * * Base View: vwContactMethods
@@ -870,8 +792,8 @@ export declare class mjBizAppsCommonAddressEntity extends BaseEntity<mjBizAppsCo
870
792
  */
871
793
  export declare class mjBizAppsCommonContactMethodEntity extends BaseEntity<mjBizAppsCommonContactMethodEntityType> {
872
794
  /**
873
- * Loads the MJ.BizApps.Common: Contact Methods record from the database
874
- * @param ID: string - primary key value to load the MJ.BizApps.Common: Contact Methods record.
795
+ * Loads the MJ_BizApps_Common: Contact Methods record from the database
796
+ * @param ID: string - primary key value to load the MJ_BizApps_Common: Contact Methods record.
875
797
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
876
798
  * @returns {Promise<boolean>} - true if successful, false otherwise
877
799
  * @public
@@ -882,7 +804,7 @@ export declare class mjBizAppsCommonContactMethodEntity extends BaseEntity<mjBiz
882
804
  */
883
805
  Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
884
806
  /**
885
- * Validate() method override for MJ.BizApps.Common: Contact Methods entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
807
+ * Validate() method override for MJ_BizApps_Common: Contact Methods entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
886
808
  * * Table-Level: Each record must be linked to either a person or an organization. This ensures that contact information is correctly attributed to exactly one entity and prevents data ambiguity caused by having both or neither assigned.
887
809
  * @public
888
810
  * @method
@@ -908,7 +830,7 @@ export declare class mjBizAppsCommonContactMethodEntity extends BaseEntity<mjBiz
908
830
  * * Field Name: PersonID
909
831
  * * Display Name: Person
910
832
  * * SQL Data Type: uniqueidentifier
911
- * * Related Entity/Foreign Key: MJ.BizApps.Common: People (vwPeopleExtended.ID)
833
+ * * Related Entity/Foreign Key: MJ_BizApps_Common: People (vwPeople.ID)
912
834
  */
913
835
  get PersonID(): string | null;
914
836
  set PersonID(value: string | null);
@@ -916,7 +838,7 @@ export declare class mjBizAppsCommonContactMethodEntity extends BaseEntity<mjBiz
916
838
  * * Field Name: OrganizationID
917
839
  * * Display Name: Organization
918
840
  * * SQL Data Type: uniqueidentifier
919
- * * Related Entity/Foreign Key: MJ.BizApps.Common: Organizations (vwOrganizationsExtended.ID)
841
+ * * Related Entity/Foreign Key: MJ_BizApps_Common: Organizations (vwOrganizations.ID)
920
842
  */
921
843
  get OrganizationID(): string | null;
922
844
  set OrganizationID(value: string | null);
@@ -924,7 +846,7 @@ export declare class mjBizAppsCommonContactMethodEntity extends BaseEntity<mjBiz
924
846
  * * Field Name: ContactTypeID
925
847
  * * Display Name: Contact Type
926
848
  * * SQL Data Type: uniqueidentifier
927
- * * Related Entity/Foreign Key: MJ.BizApps.Common: Contact Types (vwContactTypes.ID)
849
+ * * Related Entity/Foreign Key: MJ_BizApps_Common: Contact Types (vwContactTypes.ID)
928
850
  */
929
851
  get ContactTypeID(): string;
930
852
  set ContactTypeID(value: string);
@@ -969,7 +891,7 @@ export declare class mjBizAppsCommonContactMethodEntity extends BaseEntity<mjBiz
969
891
  get __mj_UpdatedAt(): Date;
970
892
  /**
971
893
  * * Field Name: Person
972
- * * Display Name: Person Name
894
+ * * Display Name: Person
973
895
  * * SQL Data Type: nvarchar(100)
974
896
  */
975
897
  get Person(): string | null;
@@ -987,7 +909,7 @@ export declare class mjBizAppsCommonContactMethodEntity extends BaseEntity<mjBiz
987
909
  get ContactType(): string;
988
910
  }
989
911
  /**
990
- * MJ.BizApps.Common: Contact Types - strongly typed entity sub-class
912
+ * MJ_BizApps_Common: Contact Types - strongly typed entity sub-class
991
913
  * * Schema: __mj_BizAppsCommon
992
914
  * * Base Table: ContactType
993
915
  * * Base View: vwContactTypes
@@ -999,8 +921,8 @@ export declare class mjBizAppsCommonContactMethodEntity extends BaseEntity<mjBiz
999
921
  */
1000
922
  export declare class mjBizAppsCommonContactTypeEntity extends BaseEntity<mjBizAppsCommonContactTypeEntityType> {
1001
923
  /**
1002
- * Loads the MJ.BizApps.Common: Contact Types record from the database
1003
- * @param ID: string - primary key value to load the MJ.BizApps.Common: Contact Types record.
924
+ * Loads the MJ_BizApps_Common: Contact Types record from the database
925
+ * @param ID: string - primary key value to load the MJ_BizApps_Common: Contact Types record.
1004
926
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
1005
927
  * @returns {Promise<boolean>} - true if successful, false otherwise
1006
928
  * @public
@@ -1076,7 +998,7 @@ export declare class mjBizAppsCommonContactTypeEntity extends BaseEntity<mjBizAp
1076
998
  get __mj_UpdatedAt(): Date;
1077
999
  }
1078
1000
  /**
1079
- * MJ.BizApps.Common: Organization Types - strongly typed entity sub-class
1001
+ * MJ_BizApps_Common: Organization Types - strongly typed entity sub-class
1080
1002
  * * Schema: __mj_BizAppsCommon
1081
1003
  * * Base Table: OrganizationType
1082
1004
  * * Base View: vwOrganizationTypes
@@ -1088,8 +1010,8 @@ export declare class mjBizAppsCommonContactTypeEntity extends BaseEntity<mjBizAp
1088
1010
  */
1089
1011
  export declare class mjBizAppsCommonOrganizationTypeEntity extends BaseEntity<mjBizAppsCommonOrganizationTypeEntityType> {
1090
1012
  /**
1091
- * Loads the MJ.BizApps.Common: Organization Types record from the database
1092
- * @param ID: string - primary key value to load the MJ.BizApps.Common: Organization Types record.
1013
+ * Loads the MJ_BizApps_Common: Organization Types record from the database
1014
+ * @param ID: string - primary key value to load the MJ_BizApps_Common: Organization Types record.
1093
1015
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
1094
1016
  * @returns {Promise<boolean>} - true if successful, false otherwise
1095
1017
  * @public
@@ -1165,10 +1087,10 @@ export declare class mjBizAppsCommonOrganizationTypeEntity extends BaseEntity<mj
1165
1087
  get __mj_UpdatedAt(): Date;
1166
1088
  }
1167
1089
  /**
1168
- * MJ.BizApps.Common: Organizations - strongly typed entity sub-class
1090
+ * MJ_BizApps_Common: Organizations - strongly typed entity sub-class
1169
1091
  * * Schema: __mj_BizAppsCommon
1170
1092
  * * Base Table: Organization
1171
- * * Base View: vwOrganizationsExtended
1093
+ * * Base View: vwOrganizations
1172
1094
  * * @description Companies, associations, government bodies, and other organizations with hierarchy support
1173
1095
  * * Primary Key: ID
1174
1096
  * @extends {BaseEntity}
@@ -1177,8 +1099,8 @@ export declare class mjBizAppsCommonOrganizationTypeEntity extends BaseEntity<mj
1177
1099
  */
1178
1100
  export declare class mjBizAppsCommonOrganizationEntity extends BaseEntity<mjBizAppsCommonOrganizationEntityType> {
1179
1101
  /**
1180
- * Loads the MJ.BizApps.Common: Organizations record from the database
1181
- * @param ID: string - primary key value to load the MJ.BizApps.Common: Organizations record.
1102
+ * Loads the MJ_BizApps_Common: Organizations record from the database
1103
+ * @param ID: string - primary key value to load the MJ_BizApps_Common: Organizations record.
1182
1104
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
1183
1105
  * @returns {Promise<boolean>} - true if successful, false otherwise
1184
1106
  * @public
@@ -1214,17 +1136,17 @@ export declare class mjBizAppsCommonOrganizationEntity extends BaseEntity<mjBizA
1214
1136
  set LegalName(value: string | null);
1215
1137
  /**
1216
1138
  * * Field Name: OrganizationTypeID
1217
- * * Display Name: Organization Type
1139
+ * * Display Name: Organization Type ID
1218
1140
  * * SQL Data Type: uniqueidentifier
1219
- * * Related Entity/Foreign Key: MJ.BizApps.Common: Organization Types (vwOrganizationTypes.ID)
1141
+ * * Related Entity/Foreign Key: MJ_BizApps_Common: Organization Types (vwOrganizationTypes.ID)
1220
1142
  */
1221
1143
  get OrganizationTypeID(): string | null;
1222
1144
  set OrganizationTypeID(value: string | null);
1223
1145
  /**
1224
1146
  * * Field Name: ParentID
1225
- * * Display Name: Parent
1147
+ * * Display Name: Parent ID
1226
1148
  * * SQL Data Type: uniqueidentifier
1227
- * * Related Entity/Foreign Key: MJ.BizApps.Common: Organizations (vwOrganizationsExtended.ID)
1149
+ * * Related Entity/Foreign Key: MJ_BizApps_Common: Organizations (vwOrganizations.ID)
1228
1150
  */
1229
1151
  get ParentID(): string | null;
1230
1152
  set ParentID(value: string | null);
@@ -1314,7 +1236,7 @@ export declare class mjBizAppsCommonOrganizationEntity extends BaseEntity<mjBizA
1314
1236
  get __mj_UpdatedAt(): Date;
1315
1237
  /**
1316
1238
  * * Field Name: OrganizationType
1317
- * * Display Name: Organization Type Name
1239
+ * * Display Name: Organization Type
1318
1240
  * * SQL Data Type: nvarchar(100)
1319
1241
  */
1320
1242
  get OrganizationType(): string | null;
@@ -1326,82 +1248,16 @@ export declare class mjBizAppsCommonOrganizationEntity extends BaseEntity<mjBizA
1326
1248
  get Parent(): string | null;
1327
1249
  /**
1328
1250
  * * Field Name: RootParentID
1329
- * * Display Name: Root Parent
1251
+ * * Display Name: Root Parent ID
1330
1252
  * * SQL Data Type: uniqueidentifier
1331
1253
  */
1332
1254
  get RootParentID(): string | null;
1333
- /**
1334
- * * Field Name: PrimaryAddressLine1
1335
- * * Display Name: Primary Address Line 1
1336
- * * SQL Data Type: nvarchar(255)
1337
- */
1338
- get PrimaryAddressLine1(): string | null;
1339
- /**
1340
- * * Field Name: PrimaryAddressLine2
1341
- * * Display Name: Primary Address Line 2
1342
- * * SQL Data Type: nvarchar(255)
1343
- */
1344
- get PrimaryAddressLine2(): string | null;
1345
- /**
1346
- * * Field Name: PrimaryAddressCity
1347
- * * Display Name: Primary City
1348
- * * SQL Data Type: nvarchar(100)
1349
- */
1350
- get PrimaryAddressCity(): string | null;
1351
- /**
1352
- * * Field Name: PrimaryAddressState
1353
- * * Display Name: Primary State
1354
- * * SQL Data Type: nvarchar(100)
1355
- */
1356
- get PrimaryAddressState(): string | null;
1357
- /**
1358
- * * Field Name: PrimaryAddressPostalCode
1359
- * * Display Name: Primary Postal Code
1360
- * * SQL Data Type: nvarchar(20)
1361
- */
1362
- get PrimaryAddressPostalCode(): string | null;
1363
- /**
1364
- * * Field Name: PrimaryAddressCountry
1365
- * * Display Name: Primary Country
1366
- * * SQL Data Type: nvarchar(100)
1367
- */
1368
- get PrimaryAddressCountry(): string | null;
1369
- /**
1370
- * * Field Name: PrimaryAddressType
1371
- * * Display Name: Primary Address Type
1372
- * * SQL Data Type: nvarchar(100)
1373
- */
1374
- get PrimaryAddressType(): string | null;
1375
- /**
1376
- * * Field Name: PrimaryEmail
1377
- * * Display Name: Primary Email
1378
- * * SQL Data Type: nvarchar(500)
1379
- */
1380
- get PrimaryEmail(): string | null;
1381
- /**
1382
- * * Field Name: PrimaryPhone
1383
- * * Display Name: Primary Phone
1384
- * * SQL Data Type: nvarchar(500)
1385
- */
1386
- get PrimaryPhone(): string | null;
1387
- /**
1388
- * * Field Name: ActivePersonCount
1389
- * * Display Name: Active Person Count
1390
- * * SQL Data Type: int
1391
- */
1392
- get ActivePersonCount(): number | null;
1393
- /**
1394
- * * Field Name: ChildOrgCount
1395
- * * Display Name: Child Organization Count
1396
- * * SQL Data Type: int
1397
- */
1398
- get ChildOrgCount(): number | null;
1399
1255
  }
1400
1256
  /**
1401
- * MJ.BizApps.Common: People - strongly typed entity sub-class
1257
+ * MJ_BizApps_Common: People - strongly typed entity sub-class
1402
1258
  * * Schema: __mj_BizAppsCommon
1403
1259
  * * Base Table: Person
1404
- * * Base View: vwPeopleExtended
1260
+ * * Base View: vwPeople
1405
1261
  * * @description Individual people, optionally linked to MJ system user accounts
1406
1262
  * * Primary Key: ID
1407
1263
  * @extends {BaseEntity}
@@ -1410,8 +1266,8 @@ export declare class mjBizAppsCommonOrganizationEntity extends BaseEntity<mjBizA
1410
1266
  */
1411
1267
  export declare class mjBizAppsCommonPersonEntity extends BaseEntity<mjBizAppsCommonPersonEntityType> {
1412
1268
  /**
1413
- * Loads the MJ.BizApps.Common: People record from the database
1414
- * @param ID: string - primary key value to load the MJ.BizApps.Common: People record.
1269
+ * Loads the MJ_BizApps_Common: People record from the database
1270
+ * @param ID: string - primary key value to load the MJ_BizApps_Common: People record.
1415
1271
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
1416
1272
  * @returns {Promise<boolean>} - true if successful, false otherwise
1417
1273
  * @public
@@ -1479,7 +1335,7 @@ export declare class mjBizAppsCommonPersonEntity extends BaseEntity<mjBizAppsCom
1479
1335
  set PreferredName(value: string | null);
1480
1336
  /**
1481
1337
  * * Field Name: Title
1482
- * * Display Name: Title
1338
+ * * Display Name: Job Title
1483
1339
  * * SQL Data Type: nvarchar(200)
1484
1340
  * * Description: Professional or job title, e.g. VP of Engineering, Board Director
1485
1341
  */
@@ -1487,7 +1343,7 @@ export declare class mjBizAppsCommonPersonEntity extends BaseEntity<mjBizAppsCom
1487
1343
  set Title(value: string | null);
1488
1344
  /**
1489
1345
  * * Field Name: Email
1490
- * * Display Name: Email
1346
+ * * Display Name: Email Address
1491
1347
  * * SQL Data Type: nvarchar(255)
1492
1348
  * * Description: Primary email address for this person
1493
1349
  */
@@ -1495,7 +1351,7 @@ export declare class mjBizAppsCommonPersonEntity extends BaseEntity<mjBizAppsCom
1495
1351
  set Email(value: string | null);
1496
1352
  /**
1497
1353
  * * Field Name: Phone
1498
- * * Display Name: Phone
1354
+ * * Display Name: Phone Number
1499
1355
  * * SQL Data Type: nvarchar(50)
1500
1356
  * * Description: Primary phone number for this person
1501
1357
  */
@@ -1571,103 +1427,13 @@ export declare class mjBizAppsCommonPersonEntity extends BaseEntity<mjBizAppsCom
1571
1427
  get __mj_UpdatedAt(): Date;
1572
1428
  /**
1573
1429
  * * Field Name: LinkedUser
1574
- * * Display Name: Linked User Account
1430
+ * * Display Name: Linked User Name
1575
1431
  * * SQL Data Type: nvarchar(100)
1576
1432
  */
1577
1433
  get LinkedUser(): string | null;
1578
- /**
1579
- * * Field Name: DisplayName
1580
- * * Display Name: Display Name
1581
- * * SQL Data Type: nvarchar(244)
1582
- */
1583
- get DisplayName(): string | null;
1584
- /**
1585
- * * Field Name: PrimaryAddressLine1
1586
- * * Display Name: Primary Address Line 1
1587
- * * SQL Data Type: nvarchar(255)
1588
- */
1589
- get PrimaryAddressLine1(): string | null;
1590
- /**
1591
- * * Field Name: PrimaryAddressLine2
1592
- * * Display Name: Primary Address Line 2
1593
- * * SQL Data Type: nvarchar(255)
1594
- */
1595
- get PrimaryAddressLine2(): string | null;
1596
- /**
1597
- * * Field Name: PrimaryAddressCity
1598
- * * Display Name: Primary City
1599
- * * SQL Data Type: nvarchar(100)
1600
- */
1601
- get PrimaryAddressCity(): string | null;
1602
- /**
1603
- * * Field Name: PrimaryAddressState
1604
- * * Display Name: Primary State
1605
- * * SQL Data Type: nvarchar(100)
1606
- */
1607
- get PrimaryAddressState(): string | null;
1608
- /**
1609
- * * Field Name: PrimaryAddressPostalCode
1610
- * * Display Name: Primary Postal Code
1611
- * * SQL Data Type: nvarchar(20)
1612
- */
1613
- get PrimaryAddressPostalCode(): string | null;
1614
- /**
1615
- * * Field Name: PrimaryAddressCountry
1616
- * * Display Name: Primary Country
1617
- * * SQL Data Type: nvarchar(100)
1618
- */
1619
- get PrimaryAddressCountry(): string | null;
1620
- /**
1621
- * * Field Name: PrimaryAddressLatitude
1622
- * * Display Name: Primary Latitude
1623
- * * SQL Data Type: decimal(9, 6)
1624
- */
1625
- get PrimaryAddressLatitude(): number | null;
1626
- /**
1627
- * * Field Name: PrimaryAddressLongitude
1628
- * * Display Name: Primary Longitude
1629
- * * SQL Data Type: decimal(9, 6)
1630
- */
1631
- get PrimaryAddressLongitude(): number | null;
1632
- /**
1633
- * * Field Name: PrimaryAddressType
1634
- * * Display Name: Address Type
1635
- * * SQL Data Type: nvarchar(100)
1636
- */
1637
- get PrimaryAddressType(): string | null;
1638
- /**
1639
- * * Field Name: PrimaryEmail
1640
- * * Display Name: Primary Email
1641
- * * SQL Data Type: nvarchar(500)
1642
- */
1643
- get PrimaryEmail(): string | null;
1644
- /**
1645
- * * Field Name: PrimaryPhone
1646
- * * Display Name: Primary Phone
1647
- * * SQL Data Type: nvarchar(500)
1648
- */
1649
- get PrimaryPhone(): string | null;
1650
- /**
1651
- * * Field Name: CurrentOrganizationID
1652
- * * Display Name: Current Organization
1653
- * * SQL Data Type: uniqueidentifier
1654
- */
1655
- get CurrentOrganizationID(): string | null;
1656
- /**
1657
- * * Field Name: CurrentOrganizationName
1658
- * * Display Name: Current Organization Name
1659
- * * SQL Data Type: nvarchar(255)
1660
- */
1661
- get CurrentOrganizationName(): string | null;
1662
- /**
1663
- * * Field Name: CurrentJobTitle
1664
- * * Display Name: Current Job Title
1665
- * * SQL Data Type: nvarchar(255)
1666
- */
1667
- get CurrentJobTitle(): string | null;
1668
1434
  }
1669
1435
  /**
1670
- * MJ.BizApps.Common: Relationship Types - strongly typed entity sub-class
1436
+ * MJ_BizApps_Common: Relationship Types - strongly typed entity sub-class
1671
1437
  * * Schema: __mj_BizAppsCommon
1672
1438
  * * Base Table: RelationshipType
1673
1439
  * * Base View: vwRelationshipTypes
@@ -1679,8 +1445,8 @@ export declare class mjBizAppsCommonPersonEntity extends BaseEntity<mjBizAppsCom
1679
1445
  */
1680
1446
  export declare class mjBizAppsCommonRelationshipTypeEntity extends BaseEntity<mjBizAppsCommonRelationshipTypeEntityType> {
1681
1447
  /**
1682
- * Loads the MJ.BizApps.Common: Relationship Types record from the database
1683
- * @param ID: string - primary key value to load the MJ.BizApps.Common: Relationship Types record.
1448
+ * Loads the MJ_BizApps_Common: Relationship Types record from the database
1449
+ * @param ID: string - primary key value to load the MJ_BizApps_Common: Relationship Types record.
1684
1450
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
1685
1451
  * @returns {Promise<boolean>} - true if successful, false otherwise
1686
1452
  * @public
@@ -1777,7 +1543,7 @@ export declare class mjBizAppsCommonRelationshipTypeEntity extends BaseEntity<mj
1777
1543
  get __mj_UpdatedAt(): Date;
1778
1544
  }
1779
1545
  /**
1780
- * MJ.BizApps.Common: Relationships - strongly typed entity sub-class
1546
+ * MJ_BizApps_Common: Relationships - strongly typed entity sub-class
1781
1547
  * * Schema: __mj_BizAppsCommon
1782
1548
  * * Base Table: Relationship
1783
1549
  * * Base View: vwRelationships
@@ -1789,8 +1555,8 @@ export declare class mjBizAppsCommonRelationshipTypeEntity extends BaseEntity<mj
1789
1555
  */
1790
1556
  export declare class mjBizAppsCommonRelationshipEntity extends BaseEntity<mjBizAppsCommonRelationshipEntityType> {
1791
1557
  /**
1792
- * Loads the MJ.BizApps.Common: Relationships record from the database
1793
- * @param ID: string - primary key value to load the MJ.BizApps.Common: Relationships record.
1558
+ * Loads the MJ_BizApps_Common: Relationships record from the database
1559
+ * @param ID: string - primary key value to load the MJ_BizApps_Common: Relationships record.
1794
1560
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
1795
1561
  * @returns {Promise<boolean>} - true if successful, false otherwise
1796
1562
  * @public
@@ -1801,7 +1567,7 @@ export declare class mjBizAppsCommonRelationshipEntity extends BaseEntity<mjBizA
1801
1567
  */
1802
1568
  Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
1803
1569
  /**
1804
- * Validate() method override for MJ.BizApps.Common: Relationships entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
1570
+ * Validate() method override for MJ_BizApps_Common: Relationships entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
1805
1571
  * * Table-Level: A relationship must be linked to exactly one source: either a person or an organization. This ensures that the origin of the relationship is clearly defined and prevents data where both or neither are specified.
1806
1572
  * * Table-Level: A relationship must be linked to exactly one target: either a person or an organization. This ensures that the destination of the relationship is clearly defined and prevents ambiguous or missing links.
1807
1573
  * @public
@@ -1833,9 +1599,9 @@ export declare class mjBizAppsCommonRelationshipEntity extends BaseEntity<mjBizA
1833
1599
  set ID(value: string);
1834
1600
  /**
1835
1601
  * * Field Name: RelationshipTypeID
1836
- * * Display Name: Relationship Type
1602
+ * * Display Name: Relationship Type ID
1837
1603
  * * SQL Data Type: uniqueidentifier
1838
- * * Related Entity/Foreign Key: MJ.BizApps.Common: Relationship Types (vwRelationshipTypes.ID)
1604
+ * * Related Entity/Foreign Key: MJ_BizApps_Common: Relationship Types (vwRelationshipTypes.ID)
1839
1605
  */
1840
1606
  get RelationshipTypeID(): string;
1841
1607
  set RelationshipTypeID(value: string);
@@ -1843,7 +1609,7 @@ export declare class mjBizAppsCommonRelationshipEntity extends BaseEntity<mjBizA
1843
1609
  * * Field Name: FromPersonID
1844
1610
  * * Display Name: From Person
1845
1611
  * * SQL Data Type: uniqueidentifier
1846
- * * Related Entity/Foreign Key: MJ.BizApps.Common: People (vwPeopleExtended.ID)
1612
+ * * Related Entity/Foreign Key: MJ_BizApps_Common: People (vwPeople.ID)
1847
1613
  */
1848
1614
  get FromPersonID(): string | null;
1849
1615
  set FromPersonID(value: string | null);
@@ -1851,7 +1617,7 @@ export declare class mjBizAppsCommonRelationshipEntity extends BaseEntity<mjBizA
1851
1617
  * * Field Name: FromOrganizationID
1852
1618
  * * Display Name: From Organization
1853
1619
  * * SQL Data Type: uniqueidentifier
1854
- * * Related Entity/Foreign Key: MJ.BizApps.Common: Organizations (vwOrganizationsExtended.ID)
1620
+ * * Related Entity/Foreign Key: MJ_BizApps_Common: Organizations (vwOrganizations.ID)
1855
1621
  */
1856
1622
  get FromOrganizationID(): string | null;
1857
1623
  set FromOrganizationID(value: string | null);
@@ -1859,7 +1625,7 @@ export declare class mjBizAppsCommonRelationshipEntity extends BaseEntity<mjBizA
1859
1625
  * * Field Name: ToPersonID
1860
1626
  * * Display Name: To Person
1861
1627
  * * SQL Data Type: uniqueidentifier
1862
- * * Related Entity/Foreign Key: MJ.BizApps.Common: People (vwPeopleExtended.ID)
1628
+ * * Related Entity/Foreign Key: MJ_BizApps_Common: People (vwPeople.ID)
1863
1629
  */
1864
1630
  get ToPersonID(): string | null;
1865
1631
  set ToPersonID(value: string | null);
@@ -1867,7 +1633,7 @@ export declare class mjBizAppsCommonRelationshipEntity extends BaseEntity<mjBizA
1867
1633
  * * Field Name: ToOrganizationID
1868
1634
  * * Display Name: To Organization
1869
1635
  * * SQL Data Type: uniqueidentifier
1870
- * * Related Entity/Foreign Key: MJ.BizApps.Common: Organizations (vwOrganizationsExtended.ID)
1636
+ * * Related Entity/Foreign Key: MJ_BizApps_Common: Organizations (vwOrganizations.ID)
1871
1637
  */
1872
1638
  get ToOrganizationID(): string | null;
1873
1639
  set ToOrganizationID(value: string | null);
@@ -1945,7 +1711,7 @@ export declare class mjBizAppsCommonRelationshipEntity extends BaseEntity<mjBizA
1945
1711
  get FromPerson(): string | null;
1946
1712
  /**
1947
1713
  * * Field Name: FromOrganization
1948
- * * Display Name: From Organization
1714
+ * * Display Name: From Organization Name
1949
1715
  * * SQL Data Type: nvarchar(255)
1950
1716
  */
1951
1717
  get FromOrganization(): string | null;
@@ -1957,7 +1723,7 @@ export declare class mjBizAppsCommonRelationshipEntity extends BaseEntity<mjBizA
1957
1723
  get ToPerson(): string | null;
1958
1724
  /**
1959
1725
  * * Field Name: ToOrganization
1960
- * * Display Name: To Organization
1726
+ * * Display Name: To Organization Name
1961
1727
  * * SQL Data Type: nvarchar(255)
1962
1728
  */
1963
1729
  get ToOrganization(): string | null;