@mj-biz-apps/common-server 5.44.0 → 5.46.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.
@@ -33,12 +33,12 @@ __decorate([
33
33
  __metadata("design:type", String)
34
34
  ], mjBizAppsCommonActivity_.prototype, "ID", void 0);
35
35
  __decorate([
36
- Field(),
36
+ Field({ nullable: true }),
37
37
  MaxLength(36),
38
38
  __metadata("design:type", String)
39
39
  ], mjBizAppsCommonActivity_.prototype, "ActivityTypeID", void 0);
40
40
  __decorate([
41
- Field({ description: `Sort key for every timeline. Instant events use the date/time of the event.` }),
41
+ Field({ nullable: true, description: `Sort key for every timeline. Instant events use the date/time of the event.` }),
42
42
  __metadata("design:type", Date)
43
43
  ], mjBizAppsCommonActivity_.prototype, "StartedAt", void 0);
44
44
  __decorate([
@@ -46,7 +46,7 @@ __decorate([
46
46
  __metadata("design:type", Date)
47
47
  ], mjBizAppsCommonActivity_.prototype, "EndedAt", void 0);
48
48
  __decorate([
49
- Field({ description: `Subject / one-line card title (e.g. Called Jane about renewal).` }),
49
+ Field({ nullable: true, description: `Subject / one-line card title (e.g. Called Jane about renewal).` }),
50
50
  MaxLength(500),
51
51
  __metadata("design:type", String)
52
52
  ], mjBizAppsCommonActivity_.prototype, "Title", void 0);
@@ -55,12 +55,12 @@ __decorate([
55
55
  __metadata("design:type", String)
56
56
  ], mjBizAppsCommonActivity_.prototype, "Description", void 0);
57
57
  __decorate([
58
- Field({ description: `Inbound, Outbound, or Internal. Channel lives on ActivityType; direction lives here so inbound email is a filter, not a type explosion.` }),
58
+ Field({ nullable: true, description: `Inbound, Outbound, or Internal. Channel lives on ActivityType; direction lives here so inbound email is a filter, not a type explosion.` }),
59
59
  MaxLength(20),
60
60
  __metadata("design:type", String)
61
61
  ], mjBizAppsCommonActivity_.prototype, "Direction", void 0);
62
62
  __decorate([
63
- Field({ description: `Logged (default for a past event), Scheduled, Completed, Cancelled, or Failed.` }),
63
+ Field({ nullable: true, description: `Logged (default for a past event), Scheduled, Completed, Cancelled, or Failed.` }),
64
64
  MaxLength(20),
65
65
  __metadata("design:type", String)
66
66
  ], mjBizAppsCommonActivity_.prototype, "Status", void 0);
@@ -70,12 +70,12 @@ __decorate([
70
70
  __metadata("design:type", String)
71
71
  ], mjBizAppsCommonActivity_.prototype, "Outcome", void 0);
72
72
  __decorate([
73
- Field({ description: `Internal (anyone who can read a Regarding record) or Private (LoggedByUserID only, until a PermissionEngine domain exists). Manual default is Internal; synced mail should default Private in the engine.` }),
73
+ Field({ nullable: true, description: `Internal (anyone who can read a Regarding record) or Private (LoggedByUserID only, until a PermissionEngine domain exists). Manual default is Internal; synced mail should default Private in the engine.` }),
74
74
  MaxLength(20),
75
75
  __metadata("design:type", String)
76
76
  ], mjBizAppsCommonActivity_.prototype, "Visibility", void 0);
77
77
  __decorate([
78
- Field({ description: `How the row was written: Manual, System, or Integration.` }),
78
+ Field({ nullable: true, description: `How the row was written: Manual, System, or Integration.` }),
79
79
  MaxLength(20),
80
80
  __metadata("design:type", String)
81
81
  ], mjBizAppsCommonActivity_.prototype, "Source", void 0);
@@ -100,7 +100,7 @@ __decorate([
100
100
  __metadata("design:type", String)
101
101
  ], mjBizAppsCommonActivity_.prototype, "ParentActivityID", void 0);
102
102
  __decorate([
103
- Field(),
103
+ Field({ nullable: true }),
104
104
  MaxLength(36),
105
105
  __metadata("design:type", String)
106
106
  ], mjBizAppsCommonActivity_.prototype, "LoggedByUserID", void 0);
@@ -123,6 +123,10 @@ __decorate([
123
123
  Field({ nullable: true, description: `JSON extras that are not query predicates: MessageID, InReplyTo, MeetingURL, Mailbox, Folder, CalendarEventID. See ActivityDetails.` }),
124
124
  __metadata("design:type", String)
125
125
  ], mjBizAppsCommonActivity_.prototype, "Details", void 0);
126
+ __decorate([
127
+ Field(() => Float, { nullable: true, description: `Derived sentiment score for this activity, bounded between -1.000 (most negative) and +1.000 (most positive). Populated by the Activity Tagging and Sentiment feature pipeline.` }),
128
+ __metadata("design:type", Number)
129
+ ], mjBizAppsCommonActivity_.prototype, "SentimentScore", void 0);
126
130
  __decorate([
127
131
  Field(),
128
132
  __metadata("design:type", Date)
@@ -132,7 +136,7 @@ __decorate([
132
136
  __metadata("design:type", Date)
133
137
  ], mjBizAppsCommonActivity_.prototype, "_mj__UpdatedAt", void 0);
134
138
  __decorate([
135
- Field(),
139
+ Field({ nullable: true }),
136
140
  MaxLength(100),
137
141
  __metadata("design:type", String)
138
142
  ], mjBizAppsCommonActivity_.prototype, "ActivityType", void 0);
@@ -142,7 +146,7 @@ __decorate([
142
146
  __metadata("design:type", String)
143
147
  ], mjBizAppsCommonActivity_.prototype, "ParentActivity", void 0);
144
148
  __decorate([
145
- Field(),
149
+ Field({ nullable: true }),
146
150
  MaxLength(100),
147
151
  __metadata("design:type", String)
148
152
  ], mjBizAppsCommonActivity_.prototype, "LoggedByUser", void 0);
@@ -185,6 +189,10 @@ __decorate([
185
189
  Field(() => Int, { nullable: true }),
186
190
  __metadata("design:type", Number)
187
191
  ], mjBizAppsCommonActivity_.prototype, "ParentActivityIDChildCount", void 0);
192
+ __decorate([
193
+ Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
194
+ __metadata("design:type", Array)
195
+ ], mjBizAppsCommonActivity_.prototype, "ReadableFields___", void 0);
188
196
  mjBizAppsCommonActivity_ = __decorate([
189
197
  ObjectType({ description: `One interaction that happened between people, about records. Timeline card — not a blob store, not a task, not field-level audit. Duration is derived from StartedAt/EndedAt.` })
190
198
  ], mjBizAppsCommonActivity_);
@@ -274,6 +282,10 @@ __decorate([
274
282
  Field({ nullable: true }),
275
283
  __metadata("design:type", String)
276
284
  ], CreatemjBizAppsCommonActivityInput.prototype, "Details", void 0);
285
+ __decorate([
286
+ Field(() => Float, { nullable: true }),
287
+ __metadata("design:type", Number)
288
+ ], CreatemjBizAppsCommonActivityInput.prototype, "SentimentScore", void 0);
277
289
  __decorate([
278
290
  Field(() => RestoreContextInput, { nullable: true }),
279
291
  __metadata("design:type", RestoreContextInput)
@@ -367,6 +379,10 @@ __decorate([
367
379
  Field({ nullable: true }),
368
380
  __metadata("design:type", String)
369
381
  ], UpdatemjBizAppsCommonActivityInput.prototype, "Details", void 0);
382
+ __decorate([
383
+ Field(() => Float, { nullable: true }),
384
+ __metadata("design:type", Number)
385
+ ], UpdatemjBizAppsCommonActivityInput.prototype, "SentimentScore", void 0);
370
386
  __decorate([
371
387
  Field(() => [KeyValuePairInput], { nullable: true }),
372
388
  __metadata("design:type", Array)
@@ -531,22 +547,22 @@ __decorate([
531
547
  __metadata("design:type", String)
532
548
  ], mjBizAppsCommonActivityFile_.prototype, "ID", void 0);
533
549
  __decorate([
534
- Field(),
550
+ Field({ nullable: true }),
535
551
  MaxLength(36),
536
552
  __metadata("design:type", String)
537
553
  ], mjBizAppsCommonActivityFile_.prototype, "ActivityID", void 0);
538
554
  __decorate([
539
- Field(),
555
+ Field({ nullable: true }),
540
556
  MaxLength(36),
541
557
  __metadata("design:type", String)
542
558
  ], mjBizAppsCommonActivityFile_.prototype, "FileID", void 0);
543
559
  __decorate([
544
- Field({ description: `Body (full MIME/HTML, at most one per activity), Attachment, or Ics.` }),
560
+ Field({ nullable: true, description: `Body (full MIME/HTML, at most one per activity), Attachment, or Ics.` }),
545
561
  MaxLength(20),
546
562
  __metadata("design:type", String)
547
563
  ], mjBizAppsCommonActivityFile_.prototype, "Kind", void 0);
548
564
  __decorate([
549
- Field(() => Int, { description: `Display order of attachments.` }),
565
+ Field(() => Int, { nullable: true, description: `Display order of attachments.` }),
550
566
  __metadata("design:type", Number)
551
567
  ], mjBizAppsCommonActivityFile_.prototype, "Sequence", void 0);
552
568
  __decorate([
@@ -558,15 +574,19 @@ __decorate([
558
574
  __metadata("design:type", Date)
559
575
  ], mjBizAppsCommonActivityFile_.prototype, "_mj__UpdatedAt", void 0);
560
576
  __decorate([
561
- Field(),
577
+ Field({ nullable: true }),
562
578
  MaxLength(500),
563
579
  __metadata("design:type", String)
564
580
  ], mjBizAppsCommonActivityFile_.prototype, "Activity", void 0);
565
581
  __decorate([
566
- Field(),
582
+ Field({ nullable: true }),
567
583
  MaxLength(500),
568
584
  __metadata("design:type", String)
569
585
  ], mjBizAppsCommonActivityFile_.prototype, "File", void 0);
586
+ __decorate([
587
+ Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
588
+ __metadata("design:type", Array)
589
+ ], mjBizAppsCommonActivityFile_.prototype, "ReadableFields___", void 0);
570
590
  mjBizAppsCommonActivityFile_ = __decorate([
571
591
  ObjectType({ description: `Join from an Activity to an MJ File. Kind Body is the full MIME/HTML (at most one per activity); Attachment and Ics are extras. Deleting the activity drops the join, not the File.` })
572
592
  ], mjBizAppsCommonActivityFile_);
@@ -793,12 +813,12 @@ __decorate([
793
813
  __metadata("design:type", String)
794
814
  ], mjBizAppsCommonActivityLink_.prototype, "ID", void 0);
795
815
  __decorate([
796
- Field(),
816
+ Field({ nullable: true }),
797
817
  MaxLength(36),
798
818
  __metadata("design:type", String)
799
819
  ], mjBizAppsCommonActivityLink_.prototype, "ActivityID", void 0);
800
820
  __decorate([
801
- Field({ description: `Why this record is on the activity: Regarding (what it is about), Participant, From/To/Cc/Bcc, Organizer/Attendee, or LoggedFor (the mailbox it was filed under).` }),
821
+ Field({ nullable: true, description: `Why this record is on the activity: Regarding (what it is about), Participant, From/To/Cc/Bcc, Organizer/Attendee, or LoggedFor (the mailbox it was filed under).` }),
802
822
  MaxLength(30),
803
823
  __metadata("design:type", String)
804
824
  ], mjBizAppsCommonActivityLink_.prototype, "Role", void 0);
@@ -823,7 +843,7 @@ __decorate([
823
843
  __metadata("design:type", String)
824
844
  ], mjBizAppsCommonActivityLink_.prototype, "IdentityValue", void 0);
825
845
  __decorate([
826
- Field(() => Int, { description: `Display order within a role (To, then Cc, …).` }),
846
+ Field(() => Int, { nullable: true, description: `Display order within a role (To, then Cc, …).` }),
827
847
  __metadata("design:type", Number)
828
848
  ], mjBizAppsCommonActivityLink_.prototype, "Sequence", void 0);
829
849
  __decorate([
@@ -835,7 +855,7 @@ __decorate([
835
855
  __metadata("design:type", Date)
836
856
  ], mjBizAppsCommonActivityLink_.prototype, "_mj__UpdatedAt", void 0);
837
857
  __decorate([
838
- Field(),
858
+ Field({ nullable: true }),
839
859
  MaxLength(500),
840
860
  __metadata("design:type", String)
841
861
  ], mjBizAppsCommonActivityLink_.prototype, "Activity", void 0);
@@ -844,6 +864,10 @@ __decorate([
844
864
  MaxLength(255),
845
865
  __metadata("design:type", String)
846
866
  ], mjBizAppsCommonActivityLink_.prototype, "Entity", void 0);
867
+ __decorate([
868
+ Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
869
+ __metadata("design:type", Array)
870
+ ], mjBizAppsCommonActivityLink_.prototype, "ReadableFields___", void 0);
847
871
  mjBizAppsCommonActivityLink_ = __decorate([
848
872
  ObjectType({ description: `Attaches an Activity to a resolved MJ record (EntityID + RecordID) or an unresolved identity (email/phone/external user) the matcher has not stamped yet. Role says whether the link is Regarding, a participant, or an email/meeting mailbox role.` })
849
873
  ], mjBizAppsCommonActivityLink_);
@@ -1094,21 +1118,21 @@ __decorate([
1094
1118
  __metadata("design:type", String)
1095
1119
  ], mjBizAppsCommonActivitySyncConnectionRuleSet_.prototype, "ID", void 0);
1096
1120
  __decorate([
1097
- Field(),
1121
+ Field({ nullable: true }),
1098
1122
  MaxLength(36),
1099
1123
  __metadata("design:type", String)
1100
1124
  ], mjBizAppsCommonActivitySyncConnectionRuleSet_.prototype, "ActivitySyncConnectionID", void 0);
1101
1125
  __decorate([
1102
- Field({ description: `The rule set bound to this connection. A mailbox composes several sets (org baseline, team overlay, mailbox-specific) through this join; Sequence on the binding is the evaluation order.` }),
1126
+ Field({ nullable: true, description: `The rule set bound to this connection. A mailbox composes several sets (org baseline, team overlay, mailbox-specific) through this join; Sequence on the binding is the evaluation order.` }),
1103
1127
  MaxLength(36),
1104
1128
  __metadata("design:type", String)
1105
1129
  ], mjBizAppsCommonActivitySyncConnectionRuleSet_.prototype, "ActivitySyncRuleSetID", void 0);
1106
1130
  __decorate([
1107
- Field(() => Int),
1131
+ Field(() => Int, { nullable: true }),
1108
1132
  __metadata("design:type", Number)
1109
1133
  ], mjBizAppsCommonActivitySyncConnectionRuleSet_.prototype, "Sequence", void 0);
1110
1134
  __decorate([
1111
- Field(() => Boolean),
1135
+ Field(() => Boolean, { nullable: true }),
1112
1136
  __metadata("design:type", Boolean)
1113
1137
  ], mjBizAppsCommonActivitySyncConnectionRuleSet_.prototype, "IsEnabled", void 0);
1114
1138
  __decorate([
@@ -1120,15 +1144,19 @@ __decorate([
1120
1144
  __metadata("design:type", Date)
1121
1145
  ], mjBizAppsCommonActivitySyncConnectionRuleSet_.prototype, "_mj__UpdatedAt", void 0);
1122
1146
  __decorate([
1123
- Field(),
1147
+ Field({ nullable: true }),
1124
1148
  MaxLength(200),
1125
1149
  __metadata("design:type", String)
1126
1150
  ], mjBizAppsCommonActivitySyncConnectionRuleSet_.prototype, "ActivitySyncConnection", void 0);
1127
1151
  __decorate([
1128
- Field(),
1152
+ Field({ nullable: true }),
1129
1153
  MaxLength(200),
1130
1154
  __metadata("design:type", String)
1131
1155
  ], mjBizAppsCommonActivitySyncConnectionRuleSet_.prototype, "ActivitySyncRuleSet", void 0);
1156
+ __decorate([
1157
+ Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
1158
+ __metadata("design:type", Array)
1159
+ ], mjBizAppsCommonActivitySyncConnectionRuleSet_.prototype, "ReadableFields___", void 0);
1132
1160
  mjBizAppsCommonActivitySyncConnectionRuleSet_ = __decorate([
1133
1161
  ObjectType({ description: `Binds a rule set to a connection, ordered. Many-to-many so a mailbox composes an org-wide baseline, a team overlay, and anything specific to itself — rather than owning one private copy of everything.` })
1134
1162
  ], mjBizAppsCommonActivitySyncConnectionRuleSet_);
@@ -1355,7 +1383,7 @@ __decorate([
1355
1383
  __metadata("design:type", String)
1356
1384
  ], mjBizAppsCommonActivitySyncConnection_.prototype, "ID", void 0);
1357
1385
  __decorate([
1358
- Field({ description: `Display name of the connection (e.g. Amith / Microsoft 365).` }),
1386
+ Field({ nullable: true, description: `Display name of the connection (e.g. Amith / Microsoft 365).` }),
1359
1387
  MaxLength(200),
1360
1388
  __metadata("design:type", String)
1361
1389
  ], mjBizAppsCommonActivitySyncConnection_.prototype, "Name", void 0);
@@ -1365,17 +1393,17 @@ __decorate([
1365
1393
  __metadata("design:type", String)
1366
1394
  ], mjBizAppsCommonActivitySyncConnection_.prototype, "Provider", void 0);
1367
1395
  __decorate([
1368
- Field({ description: `Active, Paused, Error, or Disabled.` }),
1396
+ Field({ nullable: true, description: `Active, Paused, Error, or Disabled.` }),
1369
1397
  MaxLength(20),
1370
1398
  __metadata("design:type", String)
1371
1399
  ], mjBizAppsCommonActivitySyncConnection_.prototype, "Status", void 0);
1372
1400
  __decorate([
1373
- Field({ description: `Inbound (pull into CRM), Outbound, or Bidirectional.` }),
1401
+ Field({ nullable: true, description: `Inbound (pull into CRM), Outbound, or Bidirectional.` }),
1374
1402
  MaxLength(20),
1375
1403
  __metadata("design:type", String)
1376
1404
  ], mjBizAppsCommonActivitySyncConnection_.prototype, "Direction", void 0);
1377
1405
  __decorate([
1378
- Field(),
1406
+ Field({ nullable: true }),
1379
1407
  MaxLength(36),
1380
1408
  __metadata("design:type", String)
1381
1409
  ], mjBizAppsCommonActivitySyncConnection_.prototype, "OwnerUserID", void 0);
@@ -1442,7 +1470,7 @@ __decorate([
1442
1470
  __metadata("design:type", Number)
1443
1471
  ], mjBizAppsCommonActivitySyncConnection_.prototype, "MaxAttachmentBytes", void 0);
1444
1472
  __decorate([
1445
- Field(),
1473
+ Field({ nullable: true }),
1446
1474
  MaxLength(100),
1447
1475
  __metadata("design:type", String)
1448
1476
  ], mjBizAppsCommonActivitySyncConnection_.prototype, "OwnerUser", void 0);
@@ -1461,6 +1489,10 @@ __decorate([
1461
1489
  MaxLength(50),
1462
1490
  __metadata("design:type", String)
1463
1491
  ], mjBizAppsCommonActivitySyncConnection_.prototype, "StorageProvider", void 0);
1492
+ __decorate([
1493
+ Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
1494
+ __metadata("design:type", Array)
1495
+ ], mjBizAppsCommonActivitySyncConnection_.prototype, "ReadableFields___", void 0);
1464
1496
  mjBizAppsCommonActivitySyncConnection_ = __decorate([
1465
1497
  ObjectType({ description: `A mailbox, calendar, or other provider connection that writes Activities. CredentialsRef is an MJ Credentials engine key — never a secret at rest.` })
1466
1498
  ], mjBizAppsCommonActivitySyncConnection_);
@@ -1796,12 +1828,12 @@ __decorate([
1796
1828
  __metadata("design:type", String)
1797
1829
  ], mjBizAppsCommonActivitySyncExclusion_.prototype, "ActivitySyncRuleSetID", void 0);
1798
1830
  __decorate([
1799
- Field(),
1831
+ Field({ nullable: true }),
1800
1832
  MaxLength(20),
1801
1833
  __metadata("design:type", String)
1802
1834
  ], mjBizAppsCommonActivitySyncExclusion_.prototype, "IdentityKind", void 0);
1803
1835
  __decorate([
1804
- Field(),
1836
+ Field({ nullable: true }),
1805
1837
  MaxLength(320),
1806
1838
  __metadata("design:type", String)
1807
1839
  ], mjBizAppsCommonActivitySyncExclusion_.prototype, "IdentityValue", void 0);
@@ -1815,15 +1847,15 @@ __decorate([
1815
1847
  __metadata("design:type", String)
1816
1848
  ], mjBizAppsCommonActivitySyncExclusion_.prototype, "Reason", void 0);
1817
1849
  __decorate([
1818
- Field({ nullable: true }),
1850
+ Field({ nullable: true, description: `Start of the window of MESSAGES this exclusion covers, matched against the item's own time -- when a message was sent or received, or when a meeting starts -- NOT against the current time. Leave empty for no lower bound. This is deliberately different from ActivitySyncConnection.StartAt, which is evaluated against the clock: setting this to today does not mean "exclude from today onwards", it means "exclude messages dated today or later", so a later backfill of older mail is not covered by it. Item time is also what keeps a re-run reproducible, so the run log can answer which rule excluded a message and give the same answer next time.` }),
1819
1851
  __metadata("design:type", Date)
1820
1852
  ], mjBizAppsCommonActivitySyncExclusion_.prototype, "EffectiveFrom", void 0);
1821
1853
  __decorate([
1822
- Field({ nullable: true }),
1854
+ Field({ nullable: true, description: `End of the window of MESSAGES this exclusion covers, matched against the item's own time -- when a message was sent or received, or when a meeting starts -- NOT against the current time. Leave empty for no upper bound. Inclusive of the instant given, matching how ActivitySyncRule DateFrom/DateTo compare. See EffectiveFrom for why this is item time rather than clock time.` }),
1823
1855
  __metadata("design:type", Date)
1824
1856
  ], mjBizAppsCommonActivitySyncExclusion_.prototype, "EffectiveTo", void 0);
1825
1857
  __decorate([
1826
- Field(() => Boolean),
1858
+ Field(() => Boolean, { nullable: true, description: `Whether this exclusion is in force. Unchecked, it is ignored entirely and the messages it names are qualified as if it did not exist.` }),
1827
1859
  __metadata("design:type", Boolean)
1828
1860
  ], mjBizAppsCommonActivitySyncExclusion_.prototype, "IsEnabled", void 0);
1829
1861
  __decorate([
@@ -1844,6 +1876,10 @@ __decorate([
1844
1876
  MaxLength(201),
1845
1877
  __metadata("design:type", String)
1846
1878
  ], mjBizAppsCommonActivitySyncExclusion_.prototype, "Person", void 0);
1879
+ __decorate([
1880
+ Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
1881
+ __metadata("design:type", Array)
1882
+ ], mjBizAppsCommonActivitySyncExclusion_.prototype, "ReadableFields___", void 0);
1847
1883
  mjBizAppsCommonActivitySyncExclusion_ = __decorate([
1848
1884
  ObjectType({ description: `Never-ingest list, by identity: an email address, a phone number, a social handle, or a whole domain. Rows rather than a delimited string because an exclusion that cannot be queried cannot be audited, and this is precisely what a legal hold, an HR matter or an opt-out has to be able to prove. Scoped to a rule set, or global when ActivitySyncRuleSetID is null.` })
1849
1885
  ], mjBizAppsCommonActivitySyncExclusion_);
@@ -2102,7 +2138,7 @@ __decorate([
2102
2138
  __metadata("design:type", String)
2103
2139
  ], mjBizAppsCommonActivitySyncExtension_.prototype, "ID", void 0);
2104
2140
  __decorate([
2105
- Field(),
2141
+ Field({ nullable: true }),
2106
2142
  MaxLength(200),
2107
2143
  __metadata("design:type", String)
2108
2144
  ], mjBizAppsCommonActivitySyncExtension_.prototype, "Name", void 0);
@@ -2111,7 +2147,7 @@ __decorate([
2111
2147
  __metadata("design:type", String)
2112
2148
  ], mjBizAppsCommonActivitySyncExtension_.prototype, "Description", void 0);
2113
2149
  __decorate([
2114
- Field(),
2150
+ Field({ nullable: true }),
2115
2151
  MaxLength(200),
2116
2152
  __metadata("design:type", String)
2117
2153
  ], mjBizAppsCommonActivitySyncExtension_.prototype, "DriverClass", void 0);
@@ -2126,20 +2162,20 @@ __decorate([
2126
2162
  __metadata("design:type", String)
2127
2163
  ], mjBizAppsCommonActivitySyncExtension_.prototype, "ActivitySyncProviderTypeID", void 0);
2128
2164
  __decorate([
2129
- Field(() => Int, { description: `Ascending run order. REQUIRED rather than incidental: two extensions both adding links must not depend on registration order, which varies with package load order and is not reproducible.` }),
2165
+ Field(() => Int, { nullable: true, description: `Ascending run order. REQUIRED rather than incidental: two extensions both adding links must not depend on registration order, which varies with package load order and is not reproducible.` }),
2130
2166
  __metadata("design:type", Number)
2131
2167
  ], mjBizAppsCommonActivitySyncExtension_.prototype, "Sequence", void 0);
2132
2168
  __decorate([
2133
- Field({ description: `What happens when this extension throws. Skip (the default) records the error and commits the activity without the enrichment; Abort rolls the whole write back. Skip is the default because the activity is worth more than the enrichment, and one buggy consumer app must not be able to halt ingestion for every other app on the host.` }),
2169
+ Field({ nullable: true, description: `What happens when this extension throws. Skip (the default) records the error and commits the activity without the enrichment; Abort rolls the whole write back. Skip is the default because the activity is worth more than the enrichment, and one buggy consumer app must not be able to halt ingestion for every other app on the host.` }),
2134
2170
  MaxLength(20),
2135
2171
  __metadata("design:type", String)
2136
2172
  ], mjBizAppsCommonActivitySyncExtension_.prototype, "FailurePolicy", void 0);
2137
2173
  __decorate([
2138
- Field(() => Int),
2174
+ Field(() => Int, { nullable: true }),
2139
2175
  __metadata("design:type", Number)
2140
2176
  ], mjBizAppsCommonActivitySyncExtension_.prototype, "TimeoutMS", void 0);
2141
2177
  __decorate([
2142
- Field(() => Boolean),
2178
+ Field(() => Boolean, { nullable: true }),
2143
2179
  __metadata("design:type", Boolean)
2144
2180
  ], mjBizAppsCommonActivitySyncExtension_.prototype, "IsEnabled", void 0);
2145
2181
  __decorate([
@@ -2168,6 +2204,10 @@ __decorate([
2168
2204
  MaxLength(100),
2169
2205
  __metadata("design:type", String)
2170
2206
  ], mjBizAppsCommonActivitySyncExtension_.prototype, "ActivitySyncProviderType", void 0);
2207
+ __decorate([
2208
+ Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
2209
+ __metadata("design:type", Array)
2210
+ ], mjBizAppsCommonActivitySyncExtension_.prototype, "ReadableFields___", void 0);
2171
2211
  mjBizAppsCommonActivitySyncExtension_ = __decorate([
2172
2212
  ObjectType({ description: `Registration of an in-process enrichment plugin that runs inside the Activity write transaction. Common ships this table; each consumer app ships its own rows, so a downstream app adds links (a deal, a campaign) without Common knowing it exists. Extensions ENRICH — they never veto an activity, because qualification has already run and capture must not depend on which apps are installed.` })
2173
2213
  ], mjBizAppsCommonActivitySyncExtension_);
@@ -2450,12 +2490,12 @@ __decorate([
2450
2490
  __metadata("design:type", String)
2451
2491
  ], mjBizAppsCommonActivitySyncProviderType_.prototype, "ID", void 0);
2452
2492
  __decorate([
2453
- Field(),
2493
+ Field({ nullable: true }),
2454
2494
  MaxLength(60),
2455
2495
  __metadata("design:type", String)
2456
2496
  ], mjBizAppsCommonActivitySyncProviderType_.prototype, "Code", void 0);
2457
2497
  __decorate([
2458
- Field(),
2498
+ Field({ nullable: true }),
2459
2499
  MaxLength(100),
2460
2500
  __metadata("design:type", String)
2461
2501
  ], mjBizAppsCommonActivitySyncProviderType_.prototype, "Name", void 0);
@@ -2478,12 +2518,12 @@ __decorate([
2478
2518
  __metadata("design:type", String)
2479
2519
  ], mjBizAppsCommonActivitySyncProviderType_.prototype, "SupportedKinds", void 0);
2480
2520
  __decorate([
2481
- Field({ description: `What an Undecided qualification verdict means for this provider once every rule stage has abstained. Exclude (the default) fails CLOSED — correct for anything mailbox-shaped, where capturing a private message is worse than missing a business one.` }),
2521
+ Field({ nullable: true, description: `What an Undecided qualification verdict means for this provider once every rule stage has abstained. Exclude (the default) fails CLOSED — correct for anything mailbox-shaped, where capturing a private message is worse than missing a business one.` }),
2482
2522
  MaxLength(20),
2483
2523
  __metadata("design:type", String)
2484
2524
  ], mjBizAppsCommonActivitySyncProviderType_.prototype, "DefaultQualificationPolicy", void 0);
2485
2525
  __decorate([
2486
- Field({ description: `Whether a SKIPPED message may have content retained for audit, and how much. None keeps only the opaque external id and the decision. SubjectEncrypted and FullEncrypted additionally keep ciphertext, and are only valid with DefaultEncryptionKeyID set — enforced by CK_ActivitySyncProviderType_KeyRequired. Overridable per connection.` }),
2526
+ Field({ nullable: true, description: `Whether a SKIPPED message may have content retained for audit, and how much. None keeps only the opaque external id and the decision. SubjectEncrypted and FullEncrypted additionally keep ciphertext, and are only valid with DefaultEncryptionKeyID set — enforced by CK_ActivitySyncProviderType_KeyRequired. Overridable per connection.` }),
2487
2527
  MaxLength(20),
2488
2528
  __metadata("design:type", String)
2489
2529
  ], mjBizAppsCommonActivitySyncProviderType_.prototype, "DefaultSkippedContentPolicy", void 0);
@@ -2502,15 +2542,15 @@ __decorate([
2502
2542
  __metadata("design:type", Number)
2503
2543
  ], mjBizAppsCommonActivitySyncProviderType_.prototype, "DefaultMaxAttachmentBytes", void 0);
2504
2544
  __decorate([
2505
- Field(() => Int),
2545
+ Field(() => Int, { nullable: true }),
2506
2546
  __metadata("design:type", Number)
2507
2547
  ], mjBizAppsCommonActivitySyncProviderType_.prototype, "Sequence", void 0);
2508
2548
  __decorate([
2509
- Field(() => Boolean),
2549
+ Field(() => Boolean, { nullable: true }),
2510
2550
  __metadata("design:type", Boolean)
2511
2551
  ], mjBizAppsCommonActivitySyncProviderType_.prototype, "IsSystem", void 0);
2512
2552
  __decorate([
2513
- Field(() => Boolean),
2553
+ Field(() => Boolean, { nullable: true, description: `Whether this connector type may run. Unchecked, every connection using it refuses on its next fleet tick and reports Status = Error with the reason, rather than appearing to sync -- and each returns to Active by itself once the type is re-enabled and a run succeeds. Nothing is read from any mailbox while it is off.` }),
2514
2554
  __metadata("design:type", Boolean)
2515
2555
  ], mjBizAppsCommonActivitySyncProviderType_.prototype, "IsActive", void 0);
2516
2556
  __decorate([
@@ -2536,6 +2576,10 @@ __decorate([
2536
2576
  MaxLength(50),
2537
2577
  __metadata("design:type", String)
2538
2578
  ], mjBizAppsCommonActivitySyncProviderType_.prototype, "DefaultStorageProvider", void 0);
2579
+ __decorate([
2580
+ Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
2581
+ __metadata("design:type", Array)
2582
+ ], mjBizAppsCommonActivitySyncProviderType_.prototype, "ReadableFields___", void 0);
2539
2583
  mjBizAppsCommonActivitySyncProviderType_ = __decorate([
2540
2584
  ObjectType({ description: `A kind of activity source (Microsoft365, Gmail, Twilio SMS, LinkedIn, …). Provider identity is DATA, not a CHECK constraint, so a new source is a new plugin package plus a metadata row — never a migration to Common. Also carries the DEFAULTS an operator should set once per provider rather than per mailbox: storage, encryption key, attachment cap, and what an undecided qualification verdict means.` })
2541
2585
  ], mjBizAppsCommonActivitySyncProviderType_);
@@ -2850,7 +2894,7 @@ __decorate([
2850
2894
  __metadata("design:type", String)
2851
2895
  ], mjBizAppsCommonActivitySyncRuleSet_.prototype, "ID", void 0);
2852
2896
  __decorate([
2853
- Field(),
2897
+ Field({ nullable: true }),
2854
2898
  MaxLength(200),
2855
2899
  __metadata("design:type", String)
2856
2900
  ], mjBizAppsCommonActivitySyncRuleSet_.prototype, "Name", void 0);
@@ -2868,15 +2912,15 @@ __decorate([
2868
2912
  __metadata("design:type", String)
2869
2913
  ], mjBizAppsCommonActivitySyncRuleSet_.prototype, "InternalDomains", void 0);
2870
2914
  __decorate([
2871
- Field(() => Int),
2915
+ Field(() => Int, { nullable: true }),
2872
2916
  __metadata("design:type", Number)
2873
2917
  ], mjBizAppsCommonActivitySyncRuleSet_.prototype, "Sequence", void 0);
2874
2918
  __decorate([
2875
- Field(() => Boolean),
2919
+ Field(() => Boolean, { nullable: true }),
2876
2920
  __metadata("design:type", Boolean)
2877
2921
  ], mjBizAppsCommonActivitySyncRuleSet_.prototype, "IsEnabled", void 0);
2878
2922
  __decorate([
2879
- Field(() => Boolean),
2923
+ Field(() => Boolean, { nullable: true }),
2880
2924
  __metadata("design:type", Boolean)
2881
2925
  ], mjBizAppsCommonActivitySyncRuleSet_.prototype, "IsSystem", void 0);
2882
2926
  __decorate([
@@ -2892,6 +2936,10 @@ __decorate([
2892
2936
  MaxLength(100),
2893
2937
  __metadata("design:type", String)
2894
2938
  ], mjBizAppsCommonActivitySyncRuleSet_.prototype, "ActivitySyncProviderType", void 0);
2939
+ __decorate([
2940
+ Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
2941
+ __metadata("design:type", Array)
2942
+ ], mjBizAppsCommonActivitySyncRuleSet_.prototype, "ReadableFields___", void 0);
2895
2943
  mjBizAppsCommonActivitySyncRuleSet_ = __decorate([
2896
2944
  ObjectType({ description: `A NAMED, REUSABLE set of rules bound to many connections. Rules used to hang off a single connection, so an org-wide prohibition had to be retyped for every mailbox and a new mailbox started with none — governance by copy-paste. A rule set is authored once and bound wherever it applies.` })
2897
2945
  ], mjBizAppsCommonActivitySyncRuleSet_);
@@ -3147,20 +3195,20 @@ __decorate([
3147
3195
  __metadata("design:type", String)
3148
3196
  ], mjBizAppsCommonActivitySyncRule_.prototype, "ActivitySyncConnectionID", void 0);
3149
3197
  __decorate([
3150
- Field({ description: `Display name of the rule.` }),
3198
+ Field({ nullable: true, description: `Display name of the rule.` }),
3151
3199
  MaxLength(200),
3152
3200
  __metadata("design:type", String)
3153
3201
  ], mjBizAppsCommonActivitySyncRule_.prototype, "Name", void 0);
3154
3202
  __decorate([
3155
- Field(() => Boolean, { description: `0 skips the rule without deleting it.` }),
3203
+ Field(() => Boolean, { nullable: true, description: `0 skips the rule without deleting it.` }),
3156
3204
  __metadata("design:type", Boolean)
3157
3205
  ], mjBizAppsCommonActivitySyncRule_.prototype, "IsEnabled", void 0);
3158
3206
  __decorate([
3159
- Field(() => Int, { description: `Evaluation order within the connection. Lower first.` }),
3207
+ Field(() => Int, { nullable: true, description: `Evaluation order within the connection. Lower first.` }),
3160
3208
  __metadata("design:type", Number)
3161
3209
  ], mjBizAppsCommonActivitySyncRule_.prototype, "Sequence", void 0);
3162
3210
  __decorate([
3163
- Field({ description: `Include or Exclude matching items. With no rules, the engine syncs everything the connection can see.` }),
3211
+ Field({ nullable: true, description: `Include or Exclude matching items. With no rules, the engine syncs everything the connection can see.` }),
3164
3212
  MaxLength(20),
3165
3213
  __metadata("design:type", String)
3166
3214
  ], mjBizAppsCommonActivitySyncRule_.prototype, "Action", void 0);
@@ -3183,7 +3231,7 @@ __decorate([
3183
3231
  __metadata("design:type", Date)
3184
3232
  ], mjBizAppsCommonActivitySyncRule_.prototype, "DateTo", void 0);
3185
3233
  __decorate([
3186
- Field(() => Boolean, { description: `1 = also pull attachments into ActivityFile rows.` }),
3234
+ Field(() => Boolean, { nullable: true, description: `1 = also pull attachments into ActivityFile rows.` }),
3187
3235
  __metadata("design:type", Boolean)
3188
3236
  ], mjBizAppsCommonActivitySyncRule_.prototype, "IncludeAttachments", void 0);
3189
3237
  __decorate([
@@ -3227,6 +3275,10 @@ __decorate([
3227
3275
  MaxLength(200),
3228
3276
  __metadata("design:type", String)
3229
3277
  ], mjBizAppsCommonActivitySyncRule_.prototype, "ActivitySyncRuleSet", void 0);
3278
+ __decorate([
3279
+ Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
3280
+ __metadata("design:type", Array)
3281
+ ], mjBizAppsCommonActivitySyncRule_.prototype, "ReadableFields___", void 0);
3230
3282
  mjBizAppsCommonActivitySyncRule_ = __decorate([
3231
3283
  ObjectType({ description: `Include/exclude rule for an ActivitySyncConnection: type, direction, date window, attachments, plus a JSON Filter (folders, domains, participant-must-match-ContactMethod).` })
3232
3284
  ], mjBizAppsCommonActivitySyncRule_);
@@ -3533,12 +3585,12 @@ __decorate([
3533
3585
  __metadata("design:type", String)
3534
3586
  ], mjBizAppsCommonActivitySyncRunDetail_.prototype, "ID", void 0);
3535
3587
  __decorate([
3536
- Field(),
3588
+ Field({ nullable: true }),
3537
3589
  MaxLength(36),
3538
3590
  __metadata("design:type", String)
3539
3591
  ], mjBizAppsCommonActivitySyncRunDetail_.prototype, "ActivitySyncRunID", void 0);
3540
3592
  __decorate([
3541
- Field(),
3593
+ Field({ nullable: true }),
3542
3594
  MaxLength(400),
3543
3595
  __metadata("design:type", String)
3544
3596
  ], mjBizAppsCommonActivitySyncRunDetail_.prototype, "ExternalID", void 0);
@@ -3552,7 +3604,7 @@ __decorate([
3552
3604
  __metadata("design:type", Date)
3553
3605
  ], mjBizAppsCommonActivitySyncRunDetail_.prototype, "OccurredAt", void 0);
3554
3606
  __decorate([
3555
- Field(),
3607
+ Field({ nullable: true }),
3556
3608
  MaxLength(20),
3557
3609
  __metadata("design:type", String)
3558
3610
  ], mjBizAppsCommonActivitySyncRunDetail_.prototype, "Decision", void 0);
@@ -3626,6 +3678,10 @@ __decorate([
3626
3678
  MaxLength(100),
3627
3679
  __metadata("design:type", String)
3628
3680
  ], mjBizAppsCommonActivitySyncRunDetail_.prototype, "EncryptionKey", void 0);
3681
+ __decorate([
3682
+ Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
3683
+ __metadata("design:type", Array)
3684
+ ], mjBizAppsCommonActivitySyncRunDetail_.prototype, "ReadableFields___", void 0);
3629
3685
  mjBizAppsCommonActivitySyncRunDetail_ = __decorate([
3630
3686
  ObjectType({ description: `The decision made about ONE message, written for every item considered INCLUDING every skip — which is what makes "why did my email not appear" answerable. ExternalID and the decision are always safe to keep: an opaque provider id and the name of a rule, not content. CapturedContent is different in kind and is governed by the effective SkippedContentPolicy. Give this entity permissions DISTINCT from Activity: it can hold fragments of messages that were deliberately not ingested.` })
3631
3687
  ], mjBizAppsCommonActivitySyncRunDetail_);
@@ -3932,12 +3988,12 @@ __decorate([
3932
3988
  __metadata("design:type", String)
3933
3989
  ], mjBizAppsCommonActivitySyncRun_.prototype, "ID", void 0);
3934
3990
  __decorate([
3935
- Field(),
3991
+ Field({ nullable: true }),
3936
3992
  MaxLength(36),
3937
3993
  __metadata("design:type", String)
3938
3994
  ], mjBizAppsCommonActivitySyncRun_.prototype, "ActivitySyncConnectionID", void 0);
3939
3995
  __decorate([
3940
- Field(),
3996
+ Field({ nullable: true }),
3941
3997
  __metadata("design:type", Date)
3942
3998
  ], mjBizAppsCommonActivitySyncRun_.prototype, "StartedAt", void 0);
3943
3999
  __decorate([
@@ -3945,41 +4001,41 @@ __decorate([
3945
4001
  __metadata("design:type", Date)
3946
4002
  ], mjBizAppsCommonActivitySyncRun_.prototype, "EndedAt", void 0);
3947
4003
  __decorate([
3948
- Field(),
4004
+ Field({ nullable: true }),
3949
4005
  MaxLength(20),
3950
4006
  __metadata("design:type", String)
3951
4007
  ], mjBizAppsCommonActivitySyncRun_.prototype, "Status", void 0);
3952
4008
  __decorate([
3953
- Field(),
4009
+ Field({ nullable: true }),
3954
4010
  MaxLength(20),
3955
4011
  __metadata("design:type", String)
3956
4012
  ], mjBizAppsCommonActivitySyncRun_.prototype, "TriggerType", void 0);
3957
4013
  __decorate([
3958
- Field(() => Boolean),
4014
+ Field(() => Boolean, { nullable: true }),
3959
4015
  __metadata("design:type", Boolean)
3960
4016
  ], mjBizAppsCommonActivitySyncRun_.prototype, "IsDryRun", void 0);
3961
4017
  __decorate([
3962
- Field(() => Int),
4018
+ Field(() => Int, { nullable: true }),
3963
4019
  __metadata("design:type", Number)
3964
4020
  ], mjBizAppsCommonActivitySyncRun_.prototype, "Fetched", void 0);
3965
4021
  __decorate([
3966
- Field(() => Int),
4022
+ Field(() => Int, { nullable: true }),
3967
4023
  __metadata("design:type", Number)
3968
4024
  ], mjBizAppsCommonActivitySyncRun_.prototype, "Included", void 0);
3969
4025
  __decorate([
3970
- Field(() => Int),
4026
+ Field(() => Int, { nullable: true }),
3971
4027
  __metadata("design:type", Number)
3972
4028
  ], mjBizAppsCommonActivitySyncRun_.prototype, "Excluded", void 0);
3973
4029
  __decorate([
3974
- Field(() => Int),
4030
+ Field(() => Int, { nullable: true }),
3975
4031
  __metadata("design:type", Number)
3976
4032
  ], mjBizAppsCommonActivitySyncRun_.prototype, "Duplicates", void 0);
3977
4033
  __decorate([
3978
- Field(() => Int),
4034
+ Field(() => Int, { nullable: true }),
3979
4035
  __metadata("design:type", Number)
3980
4036
  ], mjBizAppsCommonActivitySyncRun_.prototype, "Failed", void 0);
3981
4037
  __decorate([
3982
- Field(() => Int),
4038
+ Field(() => Int, { nullable: true }),
3983
4039
  __metadata("design:type", Number)
3984
4040
  ], mjBizAppsCommonActivitySyncRun_.prototype, "ExtensionErrors", void 0);
3985
4041
  __decorate([
@@ -4003,10 +4059,14 @@ __decorate([
4003
4059
  __metadata("design:type", Date)
4004
4060
  ], mjBizAppsCommonActivitySyncRun_.prototype, "_mj__UpdatedAt", void 0);
4005
4061
  __decorate([
4006
- Field(),
4062
+ Field({ nullable: true }),
4007
4063
  MaxLength(200),
4008
4064
  __metadata("design:type", String)
4009
4065
  ], mjBizAppsCommonActivitySyncRun_.prototype, "ActivitySyncConnection", void 0);
4066
+ __decorate([
4067
+ Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
4068
+ __metadata("design:type", Array)
4069
+ ], mjBizAppsCommonActivitySyncRun_.prototype, "ReadableFields___", void 0);
4010
4070
  mjBizAppsCommonActivitySyncRun_ = __decorate([
4011
4071
  ObjectType({ description: `One sync pass over one connection: what it fetched, what it decided, and whether it earned the right to move the watermark. A dry run is a real row with IsDryRun set — it evaluates and reports without writing an Activity or advancing the connection.` })
4012
4072
  ], mjBizAppsCommonActivitySyncRun_);
@@ -4321,12 +4381,12 @@ __decorate([
4321
4381
  __metadata("design:type", String)
4322
4382
  ], mjBizAppsCommonActivityType_.prototype, "ID", void 0);
4323
4383
  __decorate([
4324
- Field({ description: `Stable key targeted by sync and code (Email, Call, Meeting, Note, SMS, Chat). Unique. Names can be renamed; codes cannot.` }),
4384
+ Field({ nullable: true, description: `Stable key targeted by sync and code (Email, Call, Meeting, Note, SMS, Chat). Unique. Names can be renamed; codes cannot.` }),
4325
4385
  MaxLength(50),
4326
4386
  __metadata("design:type", String)
4327
4387
  ], mjBizAppsCommonActivityType_.prototype, "Code", void 0);
4328
4388
  __decorate([
4329
- Field({ description: `Display name for the picker and timeline.` }),
4389
+ Field({ nullable: true, description: `Display name for the picker and timeline.` }),
4330
4390
  MaxLength(100),
4331
4391
  __metadata("design:type", String)
4332
4392
  ], mjBizAppsCommonActivityType_.prototype, "Name", void 0);
@@ -4350,15 +4410,15 @@ __decorate([
4350
4410
  __metadata("design:type", String)
4351
4411
  ], mjBizAppsCommonActivityType_.prototype, "Color", void 0);
4352
4412
  __decorate([
4353
- Field(() => Int, { description: `Picker sort order. Lower first.` }),
4413
+ Field(() => Int, { nullable: true, description: `Picker sort order. Lower first.` }),
4354
4414
  __metadata("design:type", Number)
4355
4415
  ], mjBizAppsCommonActivityType_.prototype, "Sequence", void 0);
4356
4416
  __decorate([
4357
- Field(() => Boolean, { description: `1 = seeded system type the sync engine may assume (Email, Call, Meeting, Note, SMS, Chat). Clients add children with IsSystem = 0.` }),
4417
+ Field(() => Boolean, { nullable: true, description: `1 = seeded system type the sync engine may assume (Email, Call, Meeting, Note, SMS, Chat). Clients add children with IsSystem = 0.` }),
4358
4418
  __metadata("design:type", Boolean)
4359
4419
  ], mjBizAppsCommonActivityType_.prototype, "IsSystem", void 0);
4360
4420
  __decorate([
4361
- Field(() => Boolean, { description: `0 hides the type from the picker without deleting historical activities.` }),
4421
+ Field(() => Boolean, { nullable: true, description: `0 hides the type from the picker without deleting historical activities.` }),
4362
4422
  __metadata("design:type", Boolean)
4363
4423
  ], mjBizAppsCommonActivityType_.prototype, "IsActive", void 0);
4364
4424
  __decorate([
@@ -4395,6 +4455,10 @@ __decorate([
4395
4455
  Field(() => Int, { nullable: true }),
4396
4456
  __metadata("design:type", Number)
4397
4457
  ], mjBizAppsCommonActivityType_.prototype, "ParentIDChildCount", void 0);
4458
+ __decorate([
4459
+ Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
4460
+ __metadata("design:type", Array)
4461
+ ], mjBizAppsCommonActivityType_.prototype, "ReadableFields___", void 0);
4398
4462
  mjBizAppsCommonActivityType_ = __decorate([
4399
4463
  ObjectType({ description: `Lookup of interaction channels (Email, Call, Meeting, Note, SMS, Chat). Hierarchy is picker-only; direction lives on Activity. Code is the stable key — sync and code target Code, never Name.` })
4400
4464
  ], mjBizAppsCommonActivityType_);
@@ -4661,27 +4725,27 @@ __decorate([
4661
4725
  __metadata("design:type", String)
4662
4726
  ], mjBizAppsCommonAddressLink_.prototype, "ID", void 0);
4663
4727
  __decorate([
4664
- Field(),
4728
+ Field({ nullable: true }),
4665
4729
  MaxLength(36),
4666
4730
  __metadata("design:type", String)
4667
4731
  ], mjBizAppsCommonAddressLink_.prototype, "AddressID", void 0);
4668
4732
  __decorate([
4669
- Field(),
4733
+ Field({ nullable: true }),
4670
4734
  MaxLength(36),
4671
4735
  __metadata("design:type", String)
4672
4736
  ], mjBizAppsCommonAddressLink_.prototype, "EntityID", void 0);
4673
4737
  __decorate([
4674
- Field({ description: `Primary key value(s) of the linked record. NVARCHAR(700) to support concatenated composite keys for entities without single-valued primary keys` }),
4738
+ Field({ nullable: true, description: `Primary key value(s) of the linked record. NVARCHAR(700) to support concatenated composite keys for entities without single-valued primary keys` }),
4675
4739
  MaxLength(700),
4676
4740
  __metadata("design:type", String)
4677
4741
  ], mjBizAppsCommonAddressLink_.prototype, "RecordID", void 0);
4678
4742
  __decorate([
4679
- Field(),
4743
+ Field({ nullable: true }),
4680
4744
  MaxLength(36),
4681
4745
  __metadata("design:type", String)
4682
4746
  ], mjBizAppsCommonAddressLink_.prototype, "AddressTypeID", void 0);
4683
4747
  __decorate([
4684
- Field(() => Boolean, { description: `Whether this is the primary address for the linked record. Only one address per entity record should be marked primary` }),
4748
+ Field(() => Boolean, { nullable: true, description: `Whether this is the primary address for the linked record. Only one address per entity record should be marked primary` }),
4685
4749
  __metadata("design:type", Boolean)
4686
4750
  ], mjBizAppsCommonAddressLink_.prototype, "IsPrimary", void 0);
4687
4751
  __decorate([
@@ -4697,20 +4761,24 @@ __decorate([
4697
4761
  __metadata("design:type", Date)
4698
4762
  ], mjBizAppsCommonAddressLink_.prototype, "_mj__UpdatedAt", void 0);
4699
4763
  __decorate([
4700
- Field(),
4764
+ Field({ nullable: true }),
4701
4765
  MaxLength(255),
4702
4766
  __metadata("design:type", String)
4703
4767
  ], mjBizAppsCommonAddressLink_.prototype, "Address", void 0);
4704
4768
  __decorate([
4705
- Field(),
4769
+ Field({ nullable: true }),
4706
4770
  MaxLength(255),
4707
4771
  __metadata("design:type", String)
4708
4772
  ], mjBizAppsCommonAddressLink_.prototype, "Entity", void 0);
4709
4773
  __decorate([
4710
- Field(),
4774
+ Field({ nullable: true }),
4711
4775
  MaxLength(100),
4712
4776
  __metadata("design:type", String)
4713
4777
  ], mjBizAppsCommonAddressLink_.prototype, "AddressType", void 0);
4778
+ __decorate([
4779
+ Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
4780
+ __metadata("design:type", Array)
4781
+ ], mjBizAppsCommonAddressLink_.prototype, "ReadableFields___", void 0);
4714
4782
  mjBizAppsCommonAddressLink_ = __decorate([
4715
4783
  ObjectType({ description: `Polymorphic link table connecting Address records to any entity record in the system via EntityID and RecordID` })
4716
4784
  ], mjBizAppsCommonAddressLink_);
@@ -4953,7 +5021,7 @@ __decorate([
4953
5021
  __metadata("design:type", String)
4954
5022
  ], mjBizAppsCommonAddressType_.prototype, "ID", void 0);
4955
5023
  __decorate([
4956
- Field({ description: `Display name for the address type` }),
5024
+ Field({ nullable: true, description: `Display name for the address type` }),
4957
5025
  MaxLength(100),
4958
5026
  __metadata("design:type", String)
4959
5027
  ], mjBizAppsCommonAddressType_.prototype, "Name", void 0);
@@ -4967,11 +5035,11 @@ __decorate([
4967
5035
  __metadata("design:type", String)
4968
5036
  ], mjBizAppsCommonAddressType_.prototype, "IconClass", void 0);
4969
5037
  __decorate([
4970
- Field(() => Int, { description: `Default sort order for this address type in dropdown lists. Lower values appear first. Can be overridden per-record via AddressLink.Rank` }),
5038
+ Field(() => Int, { nullable: true, description: `Default sort order for this address type in dropdown lists. Lower values appear first. Can be overridden per-record via AddressLink.Rank` }),
4971
5039
  __metadata("design:type", Number)
4972
5040
  ], mjBizAppsCommonAddressType_.prototype, "DefaultRank", void 0);
4973
5041
  __decorate([
4974
- Field(() => Boolean, { description: `Whether this type is available for selection in the UI. Inactive types are hidden from dropdowns but preserved for existing records` }),
5042
+ Field(() => Boolean, { nullable: true, description: `Whether this type is available for selection in the UI. Inactive types are hidden from dropdowns but preserved for existing records` }),
4975
5043
  __metadata("design:type", Boolean)
4976
5044
  ], mjBizAppsCommonAddressType_.prototype, "IsActive", void 0);
4977
5045
  __decorate([
@@ -4982,6 +5050,10 @@ __decorate([
4982
5050
  Field(),
4983
5051
  __metadata("design:type", Date)
4984
5052
  ], mjBizAppsCommonAddressType_.prototype, "_mj__UpdatedAt", void 0);
5053
+ __decorate([
5054
+ Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
5055
+ __metadata("design:type", Array)
5056
+ ], mjBizAppsCommonAddressType_.prototype, "ReadableFields___", void 0);
4985
5057
  mjBizAppsCommonAddressType_ = __decorate([
4986
5058
  ObjectType({ description: `Categories of addresses such as Home, Work, Mailing, Billing` })
4987
5059
  ], mjBizAppsCommonAddressType_);
@@ -5216,7 +5288,7 @@ __decorate([
5216
5288
  __metadata("design:type", String)
5217
5289
  ], mjBizAppsCommonAddress_.prototype, "ID", void 0);
5218
5290
  __decorate([
5219
- Field({ description: `Street address line 1` }),
5291
+ Field({ nullable: true, description: `Street address line 1` }),
5220
5292
  MaxLength(255),
5221
5293
  __metadata("design:type", String)
5222
5294
  ], mjBizAppsCommonAddress_.prototype, "Line1", void 0);
@@ -5231,7 +5303,7 @@ __decorate([
5231
5303
  __metadata("design:type", String)
5232
5304
  ], mjBizAppsCommonAddress_.prototype, "Line3", void 0);
5233
5305
  __decorate([
5234
- Field({ description: `City or locality name` }),
5306
+ Field({ nullable: true, description: `City or locality name` }),
5235
5307
  MaxLength(100),
5236
5308
  __metadata("design:type", String)
5237
5309
  ], mjBizAppsCommonAddress_.prototype, "City", void 0);
@@ -5246,7 +5318,7 @@ __decorate([
5246
5318
  __metadata("design:type", String)
5247
5319
  ], mjBizAppsCommonAddress_.prototype, "PostalCode", void 0);
5248
5320
  __decorate([
5249
- Field({ description: `Country code or name, defaults to US` }),
5321
+ Field({ nullable: true, description: `Country code or name, defaults to US` }),
5250
5322
  MaxLength(100),
5251
5323
  __metadata("design:type", String)
5252
5324
  ], mjBizAppsCommonAddress_.prototype, "Country", void 0);
@@ -5266,6 +5338,10 @@ __decorate([
5266
5338
  Field(),
5267
5339
  __metadata("design:type", Date)
5268
5340
  ], mjBizAppsCommonAddress_.prototype, "_mj__UpdatedAt", void 0);
5341
+ __decorate([
5342
+ Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
5343
+ __metadata("design:type", Array)
5344
+ ], mjBizAppsCommonAddress_.prototype, "ReadableFields___", void 0);
5269
5345
  mjBizAppsCommonAddress_ = __decorate([
5270
5346
  ObjectType({ description: `Standalone physical address records linked to entities via AddressLink for sharing across people and organizations` })
5271
5347
  ], mjBizAppsCommonAddress_);
@@ -5542,12 +5618,12 @@ __decorate([
5542
5618
  __metadata("design:type", String)
5543
5619
  ], mjBizAppsCommonContactMethod_.prototype, "OrganizationID", void 0);
5544
5620
  __decorate([
5545
- Field(),
5621
+ Field({ nullable: true }),
5546
5622
  MaxLength(36),
5547
5623
  __metadata("design:type", String)
5548
5624
  ], mjBizAppsCommonContactMethod_.prototype, "ContactTypeID", void 0);
5549
5625
  __decorate([
5550
- Field({ description: `The contact value: phone number, email address, URL, social media handle, etc.` }),
5626
+ Field({ nullable: true, description: `The contact value: phone number, email address, URL, social media handle, etc.` }),
5551
5627
  MaxLength(500),
5552
5628
  __metadata("design:type", String)
5553
5629
  ], mjBizAppsCommonContactMethod_.prototype, "Value", void 0);
@@ -5557,7 +5633,7 @@ __decorate([
5557
5633
  __metadata("design:type", String)
5558
5634
  ], mjBizAppsCommonContactMethod_.prototype, "Label", void 0);
5559
5635
  __decorate([
5560
- Field(() => Boolean, { description: `Whether this is the primary contact method of its type for the linked person or organization` }),
5636
+ Field(() => Boolean, { nullable: true, description: `Whether this is the primary contact method of its type for the linked person or organization` }),
5561
5637
  __metadata("design:type", Boolean)
5562
5638
  ], mjBizAppsCommonContactMethod_.prototype, "IsPrimary", void 0);
5563
5639
  __decorate([
@@ -5579,10 +5655,14 @@ __decorate([
5579
5655
  __metadata("design:type", String)
5580
5656
  ], mjBizAppsCommonContactMethod_.prototype, "Organization", void 0);
5581
5657
  __decorate([
5582
- Field(),
5658
+ Field({ nullable: true }),
5583
5659
  MaxLength(100),
5584
5660
  __metadata("design:type", String)
5585
5661
  ], mjBizAppsCommonContactMethod_.prototype, "ContactType", void 0);
5662
+ __decorate([
5663
+ Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
5664
+ __metadata("design:type", Array)
5665
+ ], mjBizAppsCommonContactMethod_.prototype, "ReadableFields___", void 0);
5586
5666
  mjBizAppsCommonContactMethod_ = __decorate([
5587
5667
  ObjectType({ description: `Additional contact methods for people and organizations beyond the primary email and phone fields` })
5588
5668
  ], mjBizAppsCommonContactMethod_);
@@ -5825,7 +5905,7 @@ __decorate([
5825
5905
  __metadata("design:type", String)
5826
5906
  ], mjBizAppsCommonContactType_.prototype, "ID", void 0);
5827
5907
  __decorate([
5828
- Field({ description: `Display name for the contact type` }),
5908
+ Field({ nullable: true, description: `Display name for the contact type` }),
5829
5909
  MaxLength(100),
5830
5910
  __metadata("design:type", String)
5831
5911
  ], mjBizAppsCommonContactType_.prototype, "Name", void 0);
@@ -5839,11 +5919,11 @@ __decorate([
5839
5919
  __metadata("design:type", String)
5840
5920
  ], mjBizAppsCommonContactType_.prototype, "IconClass", void 0);
5841
5921
  __decorate([
5842
- Field(() => Int, { description: `Sort order in dropdown lists. Lower values appear first` }),
5922
+ Field(() => Int, { nullable: true, description: `Sort order in dropdown lists. Lower values appear first` }),
5843
5923
  __metadata("design:type", Number)
5844
5924
  ], mjBizAppsCommonContactType_.prototype, "DisplayRank", void 0);
5845
5925
  __decorate([
5846
- Field(() => Boolean, { description: `Whether this type is available for selection in the UI. Inactive types are hidden from dropdowns but preserved for existing records` }),
5926
+ Field(() => Boolean, { nullable: true, description: `Whether this type is available for selection in the UI. Inactive types are hidden from dropdowns but preserved for existing records` }),
5847
5927
  __metadata("design:type", Boolean)
5848
5928
  ], mjBizAppsCommonContactType_.prototype, "IsActive", void 0);
5849
5929
  __decorate([
@@ -5854,6 +5934,10 @@ __decorate([
5854
5934
  Field(),
5855
5935
  __metadata("design:type", Date)
5856
5936
  ], mjBizAppsCommonContactType_.prototype, "_mj__UpdatedAt", void 0);
5937
+ __decorate([
5938
+ Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
5939
+ __metadata("design:type", Array)
5940
+ ], mjBizAppsCommonContactType_.prototype, "ReadableFields___", void 0);
5857
5941
  mjBizAppsCommonContactType_ = __decorate([
5858
5942
  ObjectType({ description: `Categories of contact methods such as Phone, Mobile, Email, LinkedIn, Website` })
5859
5943
  ], mjBizAppsCommonContactType_);
@@ -6078,256 +6162,248 @@ mjBizAppsCommonContactTypeResolver = __decorate([
6078
6162
  ], mjBizAppsCommonContactTypeResolver);
6079
6163
  export { mjBizAppsCommonContactTypeResolver };
6080
6164
  //****************************************************************************
6081
- // ENTITY CLASS for MJ_BizApps_Common: Organization Types
6165
+ // ENTITY CLASS for MJ_BizApps_Common: Job Functions
6082
6166
  //****************************************************************************
6083
- let mjBizAppsCommonOrganizationType_ = class mjBizAppsCommonOrganizationType_ {
6167
+ let mjBizAppsCommonJobFunction_ = class mjBizAppsCommonJobFunction_ {
6084
6168
  };
6085
6169
  __decorate([
6086
6170
  Field(),
6087
6171
  MaxLength(36),
6088
6172
  __metadata("design:type", String)
6089
- ], mjBizAppsCommonOrganizationType_.prototype, "ID", void 0);
6173
+ ], mjBizAppsCommonJobFunction_.prototype, "ID", void 0);
6090
6174
  __decorate([
6091
- Field({ description: `Display name for the organization type` }),
6175
+ Field({ nullable: true }),
6092
6176
  MaxLength(100),
6093
6177
  __metadata("design:type", String)
6094
- ], mjBizAppsCommonOrganizationType_.prototype, "Name", void 0);
6095
- __decorate([
6096
- Field({ nullable: true, description: `Detailed description of this organization type` }),
6097
- __metadata("design:type", String)
6098
- ], mjBizAppsCommonOrganizationType_.prototype, "Description", void 0);
6178
+ ], mjBizAppsCommonJobFunction_.prototype, "Name", void 0);
6099
6179
  __decorate([
6100
- Field({ nullable: true, description: `Font Awesome icon class for UI display` }),
6101
- MaxLength(100),
6180
+ Field({ nullable: true }),
6102
6181
  __metadata("design:type", String)
6103
- ], mjBizAppsCommonOrganizationType_.prototype, "IconClass", void 0);
6182
+ ], mjBizAppsCommonJobFunction_.prototype, "Description", void 0);
6104
6183
  __decorate([
6105
- Field(() => Int, { description: `Sort order in dropdown lists. Lower values appear first` }),
6184
+ Field(() => Int, { nullable: true }),
6106
6185
  __metadata("design:type", Number)
6107
- ], mjBizAppsCommonOrganizationType_.prototype, "DisplayRank", void 0);
6186
+ ], mjBizAppsCommonJobFunction_.prototype, "Sequence", void 0);
6108
6187
  __decorate([
6109
- Field(() => Boolean, { description: `Whether this type is available for selection in the UI. Inactive types are hidden from dropdowns but preserved for existing records` }),
6110
- __metadata("design:type", Boolean)
6111
- ], mjBizAppsCommonOrganizationType_.prototype, "IsActive", void 0);
6188
+ Field({ nullable: true }),
6189
+ MaxLength(20),
6190
+ __metadata("design:type", String)
6191
+ ], mjBizAppsCommonJobFunction_.prototype, "Status", void 0);
6112
6192
  __decorate([
6113
6193
  Field(),
6114
6194
  __metadata("design:type", Date)
6115
- ], mjBizAppsCommonOrganizationType_.prototype, "_mj__CreatedAt", void 0);
6195
+ ], mjBizAppsCommonJobFunction_.prototype, "_mj__CreatedAt", void 0);
6116
6196
  __decorate([
6117
6197
  Field(),
6118
6198
  __metadata("design:type", Date)
6119
- ], mjBizAppsCommonOrganizationType_.prototype, "_mj__UpdatedAt", void 0);
6120
- mjBizAppsCommonOrganizationType_ = __decorate([
6121
- ObjectType({ description: `Categories of organizations such as Company, Non-Profit, Association, Government` })
6122
- ], mjBizAppsCommonOrganizationType_);
6123
- export { mjBizAppsCommonOrganizationType_ };
6199
+ ], mjBizAppsCommonJobFunction_.prototype, "_mj__UpdatedAt", void 0);
6200
+ __decorate([
6201
+ Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
6202
+ __metadata("design:type", Array)
6203
+ ], mjBizAppsCommonJobFunction_.prototype, "ReadableFields___", void 0);
6204
+ mjBizAppsCommonJobFunction_ = __decorate([
6205
+ ObjectType({ description: `Business job functions (Engineering, Marketing, Sales, etc.) for categorizing roles and career paths.` })
6206
+ ], mjBizAppsCommonJobFunction_);
6207
+ export { mjBizAppsCommonJobFunction_ };
6124
6208
  //****************************************************************************
6125
- // INPUT TYPE for MJ_BizApps_Common: Organization Types
6209
+ // INPUT TYPE for MJ_BizApps_Common: Job Functions
6126
6210
  //****************************************************************************
6127
- let CreatemjBizAppsCommonOrganizationTypeInput = class CreatemjBizAppsCommonOrganizationTypeInput {
6211
+ let CreatemjBizAppsCommonJobFunctionInput = class CreatemjBizAppsCommonJobFunctionInput {
6128
6212
  };
6129
6213
  __decorate([
6130
6214
  Field({ nullable: true }),
6131
6215
  __metadata("design:type", String)
6132
- ], CreatemjBizAppsCommonOrganizationTypeInput.prototype, "ID", void 0);
6133
- __decorate([
6134
- Field({ nullable: true }),
6135
- __metadata("design:type", String)
6136
- ], CreatemjBizAppsCommonOrganizationTypeInput.prototype, "Name", void 0);
6216
+ ], CreatemjBizAppsCommonJobFunctionInput.prototype, "ID", void 0);
6137
6217
  __decorate([
6138
6218
  Field({ nullable: true }),
6139
6219
  __metadata("design:type", String)
6140
- ], CreatemjBizAppsCommonOrganizationTypeInput.prototype, "Description", void 0);
6220
+ ], CreatemjBizAppsCommonJobFunctionInput.prototype, "Name", void 0);
6141
6221
  __decorate([
6142
6222
  Field({ nullable: true }),
6143
6223
  __metadata("design:type", String)
6144
- ], CreatemjBizAppsCommonOrganizationTypeInput.prototype, "IconClass", void 0);
6224
+ ], CreatemjBizAppsCommonJobFunctionInput.prototype, "Description", void 0);
6145
6225
  __decorate([
6146
6226
  Field(() => Int, { nullable: true }),
6147
6227
  __metadata("design:type", Number)
6148
- ], CreatemjBizAppsCommonOrganizationTypeInput.prototype, "DisplayRank", void 0);
6228
+ ], CreatemjBizAppsCommonJobFunctionInput.prototype, "Sequence", void 0);
6149
6229
  __decorate([
6150
- Field(() => Boolean, { nullable: true }),
6151
- __metadata("design:type", Boolean)
6152
- ], CreatemjBizAppsCommonOrganizationTypeInput.prototype, "IsActive", void 0);
6230
+ Field({ nullable: true }),
6231
+ __metadata("design:type", String)
6232
+ ], CreatemjBizAppsCommonJobFunctionInput.prototype, "Status", void 0);
6153
6233
  __decorate([
6154
6234
  Field(() => RestoreContextInput, { nullable: true }),
6155
6235
  __metadata("design:type", RestoreContextInput)
6156
- ], CreatemjBizAppsCommonOrganizationTypeInput.prototype, "RestoreContext___", void 0);
6157
- CreatemjBizAppsCommonOrganizationTypeInput = __decorate([
6236
+ ], CreatemjBizAppsCommonJobFunctionInput.prototype, "RestoreContext___", void 0);
6237
+ CreatemjBizAppsCommonJobFunctionInput = __decorate([
6158
6238
  InputType()
6159
- ], CreatemjBizAppsCommonOrganizationTypeInput);
6160
- export { CreatemjBizAppsCommonOrganizationTypeInput };
6239
+ ], CreatemjBizAppsCommonJobFunctionInput);
6240
+ export { CreatemjBizAppsCommonJobFunctionInput };
6161
6241
  //****************************************************************************
6162
- // INPUT TYPE for MJ_BizApps_Common: Organization Types
6242
+ // INPUT TYPE for MJ_BizApps_Common: Job Functions
6163
6243
  //****************************************************************************
6164
- let UpdatemjBizAppsCommonOrganizationTypeInput = class UpdatemjBizAppsCommonOrganizationTypeInput {
6244
+ let UpdatemjBizAppsCommonJobFunctionInput = class UpdatemjBizAppsCommonJobFunctionInput {
6165
6245
  };
6166
6246
  __decorate([
6167
6247
  Field(),
6168
6248
  __metadata("design:type", String)
6169
- ], UpdatemjBizAppsCommonOrganizationTypeInput.prototype, "ID", void 0);
6170
- __decorate([
6171
- Field({ nullable: true }),
6172
- __metadata("design:type", String)
6173
- ], UpdatemjBizAppsCommonOrganizationTypeInput.prototype, "Name", void 0);
6249
+ ], UpdatemjBizAppsCommonJobFunctionInput.prototype, "ID", void 0);
6174
6250
  __decorate([
6175
6251
  Field({ nullable: true }),
6176
6252
  __metadata("design:type", String)
6177
- ], UpdatemjBizAppsCommonOrganizationTypeInput.prototype, "Description", void 0);
6253
+ ], UpdatemjBizAppsCommonJobFunctionInput.prototype, "Name", void 0);
6178
6254
  __decorate([
6179
6255
  Field({ nullable: true }),
6180
6256
  __metadata("design:type", String)
6181
- ], UpdatemjBizAppsCommonOrganizationTypeInput.prototype, "IconClass", void 0);
6257
+ ], UpdatemjBizAppsCommonJobFunctionInput.prototype, "Description", void 0);
6182
6258
  __decorate([
6183
6259
  Field(() => Int, { nullable: true }),
6184
6260
  __metadata("design:type", Number)
6185
- ], UpdatemjBizAppsCommonOrganizationTypeInput.prototype, "DisplayRank", void 0);
6261
+ ], UpdatemjBizAppsCommonJobFunctionInput.prototype, "Sequence", void 0);
6186
6262
  __decorate([
6187
- Field(() => Boolean, { nullable: true }),
6188
- __metadata("design:type", Boolean)
6189
- ], UpdatemjBizAppsCommonOrganizationTypeInput.prototype, "IsActive", void 0);
6263
+ Field({ nullable: true }),
6264
+ __metadata("design:type", String)
6265
+ ], UpdatemjBizAppsCommonJobFunctionInput.prototype, "Status", void 0);
6190
6266
  __decorate([
6191
6267
  Field(() => [KeyValuePairInput], { nullable: true }),
6192
6268
  __metadata("design:type", Array)
6193
- ], UpdatemjBizAppsCommonOrganizationTypeInput.prototype, "OldValues___", void 0);
6269
+ ], UpdatemjBizAppsCommonJobFunctionInput.prototype, "OldValues___", void 0);
6194
6270
  __decorate([
6195
6271
  Field(() => RestoreContextInput, { nullable: true }),
6196
6272
  __metadata("design:type", RestoreContextInput)
6197
- ], UpdatemjBizAppsCommonOrganizationTypeInput.prototype, "RestoreContext___", void 0);
6198
- UpdatemjBizAppsCommonOrganizationTypeInput = __decorate([
6273
+ ], UpdatemjBizAppsCommonJobFunctionInput.prototype, "RestoreContext___", void 0);
6274
+ UpdatemjBizAppsCommonJobFunctionInput = __decorate([
6199
6275
  InputType()
6200
- ], UpdatemjBizAppsCommonOrganizationTypeInput);
6201
- export { UpdatemjBizAppsCommonOrganizationTypeInput };
6276
+ ], UpdatemjBizAppsCommonJobFunctionInput);
6277
+ export { UpdatemjBizAppsCommonJobFunctionInput };
6202
6278
  //****************************************************************************
6203
- // RESOLVER for MJ_BizApps_Common: Organization Types
6279
+ // RESOLVER for MJ_BizApps_Common: Job Functions
6204
6280
  //****************************************************************************
6205
- let RunmjBizAppsCommonOrganizationTypeViewResult = class RunmjBizAppsCommonOrganizationTypeViewResult {
6281
+ let RunmjBizAppsCommonJobFunctionViewResult = class RunmjBizAppsCommonJobFunctionViewResult {
6206
6282
  };
6207
6283
  __decorate([
6208
- Field(() => [mjBizAppsCommonOrganizationType_]),
6284
+ Field(() => [mjBizAppsCommonJobFunction_]),
6209
6285
  __metadata("design:type", Array)
6210
- ], RunmjBizAppsCommonOrganizationTypeViewResult.prototype, "Results", void 0);
6286
+ ], RunmjBizAppsCommonJobFunctionViewResult.prototype, "Results", void 0);
6211
6287
  __decorate([
6212
6288
  Field(() => String, { nullable: true }),
6213
6289
  __metadata("design:type", String)
6214
- ], RunmjBizAppsCommonOrganizationTypeViewResult.prototype, "UserViewRunID", void 0);
6290
+ ], RunmjBizAppsCommonJobFunctionViewResult.prototype, "UserViewRunID", void 0);
6215
6291
  __decorate([
6216
6292
  Field(() => Int, { nullable: true }),
6217
6293
  __metadata("design:type", Number)
6218
- ], RunmjBizAppsCommonOrganizationTypeViewResult.prototype, "RowCount", void 0);
6294
+ ], RunmjBizAppsCommonJobFunctionViewResult.prototype, "RowCount", void 0);
6219
6295
  __decorate([
6220
6296
  Field(() => Int, { nullable: true }),
6221
6297
  __metadata("design:type", Number)
6222
- ], RunmjBizAppsCommonOrganizationTypeViewResult.prototype, "TotalRowCount", void 0);
6298
+ ], RunmjBizAppsCommonJobFunctionViewResult.prototype, "TotalRowCount", void 0);
6223
6299
  __decorate([
6224
6300
  Field(() => Int, { nullable: true }),
6225
6301
  __metadata("design:type", Number)
6226
- ], RunmjBizAppsCommonOrganizationTypeViewResult.prototype, "ExecutionTime", void 0);
6302
+ ], RunmjBizAppsCommonJobFunctionViewResult.prototype, "ExecutionTime", void 0);
6227
6303
  __decorate([
6228
6304
  Field({ nullable: true }),
6229
6305
  __metadata("design:type", String)
6230
- ], RunmjBizAppsCommonOrganizationTypeViewResult.prototype, "ErrorMessage", void 0);
6306
+ ], RunmjBizAppsCommonJobFunctionViewResult.prototype, "ErrorMessage", void 0);
6231
6307
  __decorate([
6232
6308
  Field(() => Boolean, { nullable: false }),
6233
6309
  __metadata("design:type", Boolean)
6234
- ], RunmjBizAppsCommonOrganizationTypeViewResult.prototype, "Success", void 0);
6235
- RunmjBizAppsCommonOrganizationTypeViewResult = __decorate([
6310
+ ], RunmjBizAppsCommonJobFunctionViewResult.prototype, "Success", void 0);
6311
+ RunmjBizAppsCommonJobFunctionViewResult = __decorate([
6236
6312
  ObjectType()
6237
- ], RunmjBizAppsCommonOrganizationTypeViewResult);
6238
- export { RunmjBizAppsCommonOrganizationTypeViewResult };
6239
- let mjBizAppsCommonOrganizationTypeResolver = class mjBizAppsCommonOrganizationTypeResolver extends ResolverBase {
6240
- async RunmjBizAppsCommonOrganizationTypeViewByID(input, { providers, userPayload }, pubSub) {
6313
+ ], RunmjBizAppsCommonJobFunctionViewResult);
6314
+ export { RunmjBizAppsCommonJobFunctionViewResult };
6315
+ let mjBizAppsCommonJobFunctionResolver = class mjBizAppsCommonJobFunctionResolver extends ResolverBase {
6316
+ async RunmjBizAppsCommonJobFunctionViewByID(input, { providers, userPayload }, pubSub) {
6241
6317
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
6242
6318
  return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
6243
6319
  }
6244
- async RunmjBizAppsCommonOrganizationTypeViewByName(input, { providers, userPayload }, pubSub) {
6320
+ async RunmjBizAppsCommonJobFunctionViewByName(input, { providers, userPayload }, pubSub) {
6245
6321
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
6246
6322
  return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
6247
6323
  }
6248
- async RunmjBizAppsCommonOrganizationTypeDynamicView(input, { providers, userPayload }, pubSub) {
6324
+ async RunmjBizAppsCommonJobFunctionDynamicView(input, { providers, userPayload }, pubSub) {
6249
6325
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
6250
- input.EntityName = 'MJ_BizApps_Common: Organization Types';
6326
+ input.EntityName = 'MJ_BizApps_Common: Job Functions';
6251
6327
  return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
6252
6328
  }
6253
- async mjBizAppsCommonOrganizationType(ID, { userPayload, providers }, pubSub) {
6254
- this.CheckUserReadPermissions('MJ_BizApps_Common: Organization Types', userPayload);
6329
+ async mjBizAppsCommonJobFunction(ID, { userPayload, providers }, pubSub) {
6330
+ this.CheckUserReadPermissions('MJ_BizApps_Common: Job Functions', userPayload);
6255
6331
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
6256
- const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsCommon', 'vwOrganizationTypes')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Common: Organization Types', userPayload, EntityPermissionType.Read, 'AND');
6332
+ const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsCommon', 'vwJobFunctions')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Common: Job Functions', userPayload, EntityPermissionType.Read, 'AND');
6257
6333
  const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
6258
- const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Common: Organization Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
6334
+ const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Common: Job Functions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
6259
6335
  return result;
6260
6336
  }
6261
- async CreatemjBizAppsCommonOrganizationType(input, { providers, userPayload }, pubSub) {
6337
+ async CreatemjBizAppsCommonJobFunction(input, { providers, userPayload }, pubSub) {
6262
6338
  const provider = GetReadWriteProvider(providers);
6263
- return this.CreateRecord('MJ_BizApps_Common: Organization Types', input, provider, userPayload, pubSub);
6339
+ return this.CreateRecord('MJ_BizApps_Common: Job Functions', input, provider, userPayload, pubSub);
6264
6340
  }
6265
- async UpdatemjBizAppsCommonOrganizationType(input, { providers, userPayload }, pubSub) {
6341
+ async UpdatemjBizAppsCommonJobFunction(input, { providers, userPayload }, pubSub) {
6266
6342
  const provider = GetReadWriteProvider(providers);
6267
- return this.UpdateRecord('MJ_BizApps_Common: Organization Types', input, provider, userPayload, pubSub);
6343
+ return this.UpdateRecord('MJ_BizApps_Common: Job Functions', input, provider, userPayload, pubSub);
6268
6344
  }
6269
- async DeletemjBizAppsCommonOrganizationType(ID, options, { providers, userPayload }, pubSub) {
6345
+ async DeletemjBizAppsCommonJobFunction(ID, options, { providers, userPayload }, pubSub) {
6270
6346
  const provider = GetReadWriteProvider(providers);
6271
6347
  const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
6272
- return this.DeleteRecord('MJ_BizApps_Common: Organization Types', key, options, provider, userPayload, pubSub);
6348
+ return this.DeleteRecord('MJ_BizApps_Common: Job Functions', key, options, provider, userPayload, pubSub);
6273
6349
  }
6274
6350
  };
6275
6351
  __decorate([
6276
- Query(() => RunmjBizAppsCommonOrganizationTypeViewResult),
6352
+ Query(() => RunmjBizAppsCommonJobFunctionViewResult),
6277
6353
  __param(0, Arg('input', () => RunViewByIDInput)),
6278
6354
  __param(1, Ctx()),
6279
6355
  __param(2, PubSub()),
6280
6356
  __metadata("design:type", Function),
6281
6357
  __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
6282
6358
  __metadata("design:returntype", Promise)
6283
- ], mjBizAppsCommonOrganizationTypeResolver.prototype, "RunmjBizAppsCommonOrganizationTypeViewByID", null);
6359
+ ], mjBizAppsCommonJobFunctionResolver.prototype, "RunmjBizAppsCommonJobFunctionViewByID", null);
6284
6360
  __decorate([
6285
- Query(() => RunmjBizAppsCommonOrganizationTypeViewResult),
6361
+ Query(() => RunmjBizAppsCommonJobFunctionViewResult),
6286
6362
  __param(0, Arg('input', () => RunViewByNameInput)),
6287
6363
  __param(1, Ctx()),
6288
6364
  __param(2, PubSub()),
6289
6365
  __metadata("design:type", Function),
6290
6366
  __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
6291
6367
  __metadata("design:returntype", Promise)
6292
- ], mjBizAppsCommonOrganizationTypeResolver.prototype, "RunmjBizAppsCommonOrganizationTypeViewByName", null);
6368
+ ], mjBizAppsCommonJobFunctionResolver.prototype, "RunmjBizAppsCommonJobFunctionViewByName", null);
6293
6369
  __decorate([
6294
- Query(() => RunmjBizAppsCommonOrganizationTypeViewResult),
6370
+ Query(() => RunmjBizAppsCommonJobFunctionViewResult),
6295
6371
  __param(0, Arg('input', () => RunDynamicViewInput)),
6296
6372
  __param(1, Ctx()),
6297
6373
  __param(2, PubSub()),
6298
6374
  __metadata("design:type", Function),
6299
6375
  __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
6300
6376
  __metadata("design:returntype", Promise)
6301
- ], mjBizAppsCommonOrganizationTypeResolver.prototype, "RunmjBizAppsCommonOrganizationTypeDynamicView", null);
6377
+ ], mjBizAppsCommonJobFunctionResolver.prototype, "RunmjBizAppsCommonJobFunctionDynamicView", null);
6302
6378
  __decorate([
6303
- Query(() => mjBizAppsCommonOrganizationType_, { nullable: true }),
6379
+ Query(() => mjBizAppsCommonJobFunction_, { nullable: true }),
6304
6380
  __param(0, Arg('ID', () => String)),
6305
6381
  __param(1, Ctx()),
6306
6382
  __param(2, PubSub()),
6307
6383
  __metadata("design:type", Function),
6308
6384
  __metadata("design:paramtypes", [String, Object, PubSubEngine]),
6309
6385
  __metadata("design:returntype", Promise)
6310
- ], mjBizAppsCommonOrganizationTypeResolver.prototype, "mjBizAppsCommonOrganizationType", null);
6386
+ ], mjBizAppsCommonJobFunctionResolver.prototype, "mjBizAppsCommonJobFunction", null);
6311
6387
  __decorate([
6312
- Mutation(() => mjBizAppsCommonOrganizationType_),
6313
- __param(0, Arg('input', () => CreatemjBizAppsCommonOrganizationTypeInput)),
6388
+ Mutation(() => mjBizAppsCommonJobFunction_),
6389
+ __param(0, Arg('input', () => CreatemjBizAppsCommonJobFunctionInput)),
6314
6390
  __param(1, Ctx()),
6315
6391
  __param(2, PubSub()),
6316
6392
  __metadata("design:type", Function),
6317
- __metadata("design:paramtypes", [CreatemjBizAppsCommonOrganizationTypeInput, Object, PubSubEngine]),
6393
+ __metadata("design:paramtypes", [CreatemjBizAppsCommonJobFunctionInput, Object, PubSubEngine]),
6318
6394
  __metadata("design:returntype", Promise)
6319
- ], mjBizAppsCommonOrganizationTypeResolver.prototype, "CreatemjBizAppsCommonOrganizationType", null);
6395
+ ], mjBizAppsCommonJobFunctionResolver.prototype, "CreatemjBizAppsCommonJobFunction", null);
6320
6396
  __decorate([
6321
- Mutation(() => mjBizAppsCommonOrganizationType_),
6322
- __param(0, Arg('input', () => UpdatemjBizAppsCommonOrganizationTypeInput)),
6397
+ Mutation(() => mjBizAppsCommonJobFunction_),
6398
+ __param(0, Arg('input', () => UpdatemjBizAppsCommonJobFunctionInput)),
6323
6399
  __param(1, Ctx()),
6324
6400
  __param(2, PubSub()),
6325
6401
  __metadata("design:type", Function),
6326
- __metadata("design:paramtypes", [UpdatemjBizAppsCommonOrganizationTypeInput, Object, PubSubEngine]),
6402
+ __metadata("design:paramtypes", [UpdatemjBizAppsCommonJobFunctionInput, Object, PubSubEngine]),
6327
6403
  __metadata("design:returntype", Promise)
6328
- ], mjBizAppsCommonOrganizationTypeResolver.prototype, "UpdatemjBizAppsCommonOrganizationType", null);
6404
+ ], mjBizAppsCommonJobFunctionResolver.prototype, "UpdatemjBizAppsCommonJobFunction", null);
6329
6405
  __decorate([
6330
- Mutation(() => mjBizAppsCommonOrganizationType_),
6406
+ Mutation(() => mjBizAppsCommonJobFunction_),
6331
6407
  __param(0, Arg('ID', () => String)),
6332
6408
  __param(1, Arg('options___', () => DeleteOptionsInput)),
6333
6409
  __param(2, Ctx()),
@@ -6335,13 +6411,280 @@ __decorate([
6335
6411
  __metadata("design:type", Function),
6336
6412
  __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
6337
6413
  __metadata("design:returntype", Promise)
6338
- ], mjBizAppsCommonOrganizationTypeResolver.prototype, "DeletemjBizAppsCommonOrganizationType", null);
6339
- mjBizAppsCommonOrganizationTypeResolver = __decorate([
6340
- Resolver(mjBizAppsCommonOrganizationType_)
6341
- ], mjBizAppsCommonOrganizationTypeResolver);
6342
- export { mjBizAppsCommonOrganizationTypeResolver };
6414
+ ], mjBizAppsCommonJobFunctionResolver.prototype, "DeletemjBizAppsCommonJobFunction", null);
6415
+ mjBizAppsCommonJobFunctionResolver = __decorate([
6416
+ Resolver(mjBizAppsCommonJobFunction_)
6417
+ ], mjBizAppsCommonJobFunctionResolver);
6418
+ export { mjBizAppsCommonJobFunctionResolver };
6343
6419
  //****************************************************************************
6344
- // ENTITY CLASS for MJ_BizApps_Common: Organizations
6420
+ // ENTITY CLASS for MJ_BizApps_Common: Organization Types
6421
+ //****************************************************************************
6422
+ let mjBizAppsCommonOrganizationType_ = class mjBizAppsCommonOrganizationType_ {
6423
+ };
6424
+ __decorate([
6425
+ Field(),
6426
+ MaxLength(36),
6427
+ __metadata("design:type", String)
6428
+ ], mjBizAppsCommonOrganizationType_.prototype, "ID", void 0);
6429
+ __decorate([
6430
+ Field({ nullable: true, description: `Display name for the organization type` }),
6431
+ MaxLength(100),
6432
+ __metadata("design:type", String)
6433
+ ], mjBizAppsCommonOrganizationType_.prototype, "Name", void 0);
6434
+ __decorate([
6435
+ Field({ nullable: true, description: `Detailed description of this organization type` }),
6436
+ __metadata("design:type", String)
6437
+ ], mjBizAppsCommonOrganizationType_.prototype, "Description", void 0);
6438
+ __decorate([
6439
+ Field({ nullable: true, description: `Font Awesome icon class for UI display` }),
6440
+ MaxLength(100),
6441
+ __metadata("design:type", String)
6442
+ ], mjBizAppsCommonOrganizationType_.prototype, "IconClass", void 0);
6443
+ __decorate([
6444
+ Field(() => Int, { nullable: true, description: `Sort order in dropdown lists. Lower values appear first` }),
6445
+ __metadata("design:type", Number)
6446
+ ], mjBizAppsCommonOrganizationType_.prototype, "DisplayRank", void 0);
6447
+ __decorate([
6448
+ Field(() => Boolean, { nullable: true, description: `Whether this type is available for selection in the UI. Inactive types are hidden from dropdowns but preserved for existing records` }),
6449
+ __metadata("design:type", Boolean)
6450
+ ], mjBizAppsCommonOrganizationType_.prototype, "IsActive", void 0);
6451
+ __decorate([
6452
+ Field(),
6453
+ __metadata("design:type", Date)
6454
+ ], mjBizAppsCommonOrganizationType_.prototype, "_mj__CreatedAt", void 0);
6455
+ __decorate([
6456
+ Field(),
6457
+ __metadata("design:type", Date)
6458
+ ], mjBizAppsCommonOrganizationType_.prototype, "_mj__UpdatedAt", void 0);
6459
+ __decorate([
6460
+ Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
6461
+ __metadata("design:type", Array)
6462
+ ], mjBizAppsCommonOrganizationType_.prototype, "ReadableFields___", void 0);
6463
+ mjBizAppsCommonOrganizationType_ = __decorate([
6464
+ ObjectType({ description: `Categories of organizations such as Company, Non-Profit, Association, Government` })
6465
+ ], mjBizAppsCommonOrganizationType_);
6466
+ export { mjBizAppsCommonOrganizationType_ };
6467
+ //****************************************************************************
6468
+ // INPUT TYPE for MJ_BizApps_Common: Organization Types
6469
+ //****************************************************************************
6470
+ let CreatemjBizAppsCommonOrganizationTypeInput = class CreatemjBizAppsCommonOrganizationTypeInput {
6471
+ };
6472
+ __decorate([
6473
+ Field({ nullable: true }),
6474
+ __metadata("design:type", String)
6475
+ ], CreatemjBizAppsCommonOrganizationTypeInput.prototype, "ID", void 0);
6476
+ __decorate([
6477
+ Field({ nullable: true }),
6478
+ __metadata("design:type", String)
6479
+ ], CreatemjBizAppsCommonOrganizationTypeInput.prototype, "Name", void 0);
6480
+ __decorate([
6481
+ Field({ nullable: true }),
6482
+ __metadata("design:type", String)
6483
+ ], CreatemjBizAppsCommonOrganizationTypeInput.prototype, "Description", void 0);
6484
+ __decorate([
6485
+ Field({ nullable: true }),
6486
+ __metadata("design:type", String)
6487
+ ], CreatemjBizAppsCommonOrganizationTypeInput.prototype, "IconClass", void 0);
6488
+ __decorate([
6489
+ Field(() => Int, { nullable: true }),
6490
+ __metadata("design:type", Number)
6491
+ ], CreatemjBizAppsCommonOrganizationTypeInput.prototype, "DisplayRank", void 0);
6492
+ __decorate([
6493
+ Field(() => Boolean, { nullable: true }),
6494
+ __metadata("design:type", Boolean)
6495
+ ], CreatemjBizAppsCommonOrganizationTypeInput.prototype, "IsActive", void 0);
6496
+ __decorate([
6497
+ Field(() => RestoreContextInput, { nullable: true }),
6498
+ __metadata("design:type", RestoreContextInput)
6499
+ ], CreatemjBizAppsCommonOrganizationTypeInput.prototype, "RestoreContext___", void 0);
6500
+ CreatemjBizAppsCommonOrganizationTypeInput = __decorate([
6501
+ InputType()
6502
+ ], CreatemjBizAppsCommonOrganizationTypeInput);
6503
+ export { CreatemjBizAppsCommonOrganizationTypeInput };
6504
+ //****************************************************************************
6505
+ // INPUT TYPE for MJ_BizApps_Common: Organization Types
6506
+ //****************************************************************************
6507
+ let UpdatemjBizAppsCommonOrganizationTypeInput = class UpdatemjBizAppsCommonOrganizationTypeInput {
6508
+ };
6509
+ __decorate([
6510
+ Field(),
6511
+ __metadata("design:type", String)
6512
+ ], UpdatemjBizAppsCommonOrganizationTypeInput.prototype, "ID", void 0);
6513
+ __decorate([
6514
+ Field({ nullable: true }),
6515
+ __metadata("design:type", String)
6516
+ ], UpdatemjBizAppsCommonOrganizationTypeInput.prototype, "Name", void 0);
6517
+ __decorate([
6518
+ Field({ nullable: true }),
6519
+ __metadata("design:type", String)
6520
+ ], UpdatemjBizAppsCommonOrganizationTypeInput.prototype, "Description", void 0);
6521
+ __decorate([
6522
+ Field({ nullable: true }),
6523
+ __metadata("design:type", String)
6524
+ ], UpdatemjBizAppsCommonOrganizationTypeInput.prototype, "IconClass", void 0);
6525
+ __decorate([
6526
+ Field(() => Int, { nullable: true }),
6527
+ __metadata("design:type", Number)
6528
+ ], UpdatemjBizAppsCommonOrganizationTypeInput.prototype, "DisplayRank", void 0);
6529
+ __decorate([
6530
+ Field(() => Boolean, { nullable: true }),
6531
+ __metadata("design:type", Boolean)
6532
+ ], UpdatemjBizAppsCommonOrganizationTypeInput.prototype, "IsActive", void 0);
6533
+ __decorate([
6534
+ Field(() => [KeyValuePairInput], { nullable: true }),
6535
+ __metadata("design:type", Array)
6536
+ ], UpdatemjBizAppsCommonOrganizationTypeInput.prototype, "OldValues___", void 0);
6537
+ __decorate([
6538
+ Field(() => RestoreContextInput, { nullable: true }),
6539
+ __metadata("design:type", RestoreContextInput)
6540
+ ], UpdatemjBizAppsCommonOrganizationTypeInput.prototype, "RestoreContext___", void 0);
6541
+ UpdatemjBizAppsCommonOrganizationTypeInput = __decorate([
6542
+ InputType()
6543
+ ], UpdatemjBizAppsCommonOrganizationTypeInput);
6544
+ export { UpdatemjBizAppsCommonOrganizationTypeInput };
6545
+ //****************************************************************************
6546
+ // RESOLVER for MJ_BizApps_Common: Organization Types
6547
+ //****************************************************************************
6548
+ let RunmjBizAppsCommonOrganizationTypeViewResult = class RunmjBizAppsCommonOrganizationTypeViewResult {
6549
+ };
6550
+ __decorate([
6551
+ Field(() => [mjBizAppsCommonOrganizationType_]),
6552
+ __metadata("design:type", Array)
6553
+ ], RunmjBizAppsCommonOrganizationTypeViewResult.prototype, "Results", void 0);
6554
+ __decorate([
6555
+ Field(() => String, { nullable: true }),
6556
+ __metadata("design:type", String)
6557
+ ], RunmjBizAppsCommonOrganizationTypeViewResult.prototype, "UserViewRunID", void 0);
6558
+ __decorate([
6559
+ Field(() => Int, { nullable: true }),
6560
+ __metadata("design:type", Number)
6561
+ ], RunmjBizAppsCommonOrganizationTypeViewResult.prototype, "RowCount", void 0);
6562
+ __decorate([
6563
+ Field(() => Int, { nullable: true }),
6564
+ __metadata("design:type", Number)
6565
+ ], RunmjBizAppsCommonOrganizationTypeViewResult.prototype, "TotalRowCount", void 0);
6566
+ __decorate([
6567
+ Field(() => Int, { nullable: true }),
6568
+ __metadata("design:type", Number)
6569
+ ], RunmjBizAppsCommonOrganizationTypeViewResult.prototype, "ExecutionTime", void 0);
6570
+ __decorate([
6571
+ Field({ nullable: true }),
6572
+ __metadata("design:type", String)
6573
+ ], RunmjBizAppsCommonOrganizationTypeViewResult.prototype, "ErrorMessage", void 0);
6574
+ __decorate([
6575
+ Field(() => Boolean, { nullable: false }),
6576
+ __metadata("design:type", Boolean)
6577
+ ], RunmjBizAppsCommonOrganizationTypeViewResult.prototype, "Success", void 0);
6578
+ RunmjBizAppsCommonOrganizationTypeViewResult = __decorate([
6579
+ ObjectType()
6580
+ ], RunmjBizAppsCommonOrganizationTypeViewResult);
6581
+ export { RunmjBizAppsCommonOrganizationTypeViewResult };
6582
+ let mjBizAppsCommonOrganizationTypeResolver = class mjBizAppsCommonOrganizationTypeResolver extends ResolverBase {
6583
+ async RunmjBizAppsCommonOrganizationTypeViewByID(input, { providers, userPayload }, pubSub) {
6584
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
6585
+ return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
6586
+ }
6587
+ async RunmjBizAppsCommonOrganizationTypeViewByName(input, { providers, userPayload }, pubSub) {
6588
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
6589
+ return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
6590
+ }
6591
+ async RunmjBizAppsCommonOrganizationTypeDynamicView(input, { providers, userPayload }, pubSub) {
6592
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
6593
+ input.EntityName = 'MJ_BizApps_Common: Organization Types';
6594
+ return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
6595
+ }
6596
+ async mjBizAppsCommonOrganizationType(ID, { userPayload, providers }, pubSub) {
6597
+ this.CheckUserReadPermissions('MJ_BizApps_Common: Organization Types', userPayload);
6598
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
6599
+ const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsCommon', 'vwOrganizationTypes')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Common: Organization Types', userPayload, EntityPermissionType.Read, 'AND');
6600
+ const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
6601
+ const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Common: Organization Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
6602
+ return result;
6603
+ }
6604
+ async CreatemjBizAppsCommonOrganizationType(input, { providers, userPayload }, pubSub) {
6605
+ const provider = GetReadWriteProvider(providers);
6606
+ return this.CreateRecord('MJ_BizApps_Common: Organization Types', input, provider, userPayload, pubSub);
6607
+ }
6608
+ async UpdatemjBizAppsCommonOrganizationType(input, { providers, userPayload }, pubSub) {
6609
+ const provider = GetReadWriteProvider(providers);
6610
+ return this.UpdateRecord('MJ_BizApps_Common: Organization Types', input, provider, userPayload, pubSub);
6611
+ }
6612
+ async DeletemjBizAppsCommonOrganizationType(ID, options, { providers, userPayload }, pubSub) {
6613
+ const provider = GetReadWriteProvider(providers);
6614
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
6615
+ return this.DeleteRecord('MJ_BizApps_Common: Organization Types', key, options, provider, userPayload, pubSub);
6616
+ }
6617
+ };
6618
+ __decorate([
6619
+ Query(() => RunmjBizAppsCommonOrganizationTypeViewResult),
6620
+ __param(0, Arg('input', () => RunViewByIDInput)),
6621
+ __param(1, Ctx()),
6622
+ __param(2, PubSub()),
6623
+ __metadata("design:type", Function),
6624
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
6625
+ __metadata("design:returntype", Promise)
6626
+ ], mjBizAppsCommonOrganizationTypeResolver.prototype, "RunmjBizAppsCommonOrganizationTypeViewByID", null);
6627
+ __decorate([
6628
+ Query(() => RunmjBizAppsCommonOrganizationTypeViewResult),
6629
+ __param(0, Arg('input', () => RunViewByNameInput)),
6630
+ __param(1, Ctx()),
6631
+ __param(2, PubSub()),
6632
+ __metadata("design:type", Function),
6633
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
6634
+ __metadata("design:returntype", Promise)
6635
+ ], mjBizAppsCommonOrganizationTypeResolver.prototype, "RunmjBizAppsCommonOrganizationTypeViewByName", null);
6636
+ __decorate([
6637
+ Query(() => RunmjBizAppsCommonOrganizationTypeViewResult),
6638
+ __param(0, Arg('input', () => RunDynamicViewInput)),
6639
+ __param(1, Ctx()),
6640
+ __param(2, PubSub()),
6641
+ __metadata("design:type", Function),
6642
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
6643
+ __metadata("design:returntype", Promise)
6644
+ ], mjBizAppsCommonOrganizationTypeResolver.prototype, "RunmjBizAppsCommonOrganizationTypeDynamicView", null);
6645
+ __decorate([
6646
+ Query(() => mjBizAppsCommonOrganizationType_, { nullable: true }),
6647
+ __param(0, Arg('ID', () => String)),
6648
+ __param(1, Ctx()),
6649
+ __param(2, PubSub()),
6650
+ __metadata("design:type", Function),
6651
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
6652
+ __metadata("design:returntype", Promise)
6653
+ ], mjBizAppsCommonOrganizationTypeResolver.prototype, "mjBizAppsCommonOrganizationType", null);
6654
+ __decorate([
6655
+ Mutation(() => mjBizAppsCommonOrganizationType_),
6656
+ __param(0, Arg('input', () => CreatemjBizAppsCommonOrganizationTypeInput)),
6657
+ __param(1, Ctx()),
6658
+ __param(2, PubSub()),
6659
+ __metadata("design:type", Function),
6660
+ __metadata("design:paramtypes", [CreatemjBizAppsCommonOrganizationTypeInput, Object, PubSubEngine]),
6661
+ __metadata("design:returntype", Promise)
6662
+ ], mjBizAppsCommonOrganizationTypeResolver.prototype, "CreatemjBizAppsCommonOrganizationType", null);
6663
+ __decorate([
6664
+ Mutation(() => mjBizAppsCommonOrganizationType_),
6665
+ __param(0, Arg('input', () => UpdatemjBizAppsCommonOrganizationTypeInput)),
6666
+ __param(1, Ctx()),
6667
+ __param(2, PubSub()),
6668
+ __metadata("design:type", Function),
6669
+ __metadata("design:paramtypes", [UpdatemjBizAppsCommonOrganizationTypeInput, Object, PubSubEngine]),
6670
+ __metadata("design:returntype", Promise)
6671
+ ], mjBizAppsCommonOrganizationTypeResolver.prototype, "UpdatemjBizAppsCommonOrganizationType", null);
6672
+ __decorate([
6673
+ Mutation(() => mjBizAppsCommonOrganizationType_),
6674
+ __param(0, Arg('ID', () => String)),
6675
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
6676
+ __param(2, Ctx()),
6677
+ __param(3, PubSub()),
6678
+ __metadata("design:type", Function),
6679
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
6680
+ __metadata("design:returntype", Promise)
6681
+ ], mjBizAppsCommonOrganizationTypeResolver.prototype, "DeletemjBizAppsCommonOrganizationType", null);
6682
+ mjBizAppsCommonOrganizationTypeResolver = __decorate([
6683
+ Resolver(mjBizAppsCommonOrganizationType_)
6684
+ ], mjBizAppsCommonOrganizationTypeResolver);
6685
+ export { mjBizAppsCommonOrganizationTypeResolver };
6686
+ //****************************************************************************
6687
+ // ENTITY CLASS for MJ_BizApps_Common: Organizations
6345
6688
  //****************************************************************************
6346
6689
  let mjBizAppsCommonOrganization_ = class mjBizAppsCommonOrganization_ {
6347
6690
  };
@@ -6351,7 +6694,7 @@ __decorate([
6351
6694
  __metadata("design:type", String)
6352
6695
  ], mjBizAppsCommonOrganization_.prototype, "ID", void 0);
6353
6696
  __decorate([
6354
- Field({ description: `Common or display name of the organization` }),
6697
+ Field({ nullable: true, description: `Common or display name of the organization` }),
6355
6698
  MaxLength(255),
6356
6699
  __metadata("design:type", String)
6357
6700
  ], mjBizAppsCommonOrganization_.prototype, "Name", void 0);
@@ -6403,7 +6746,7 @@ __decorate([
6403
6746
  __metadata("design:type", String)
6404
6747
  ], mjBizAppsCommonOrganization_.prototype, "TaxID", void 0);
6405
6748
  __decorate([
6406
- Field({ description: `Current status: Active, Inactive, or Dissolved` }),
6749
+ Field({ nullable: true, description: `Current status: Active, Inactive, or Dissolved` }),
6407
6750
  MaxLength(50),
6408
6751
  __metadata("design:type", String)
6409
6752
  ], mjBizAppsCommonOrganization_.prototype, "Status", void 0);
@@ -6446,6 +6789,14 @@ __decorate([
6446
6789
  Field(() => Int, { nullable: true }),
6447
6790
  __metadata("design:type", Number)
6448
6791
  ], mjBizAppsCommonOrganization_.prototype, "ParentIDChildCount", void 0);
6792
+ __decorate([
6793
+ Field(() => Float, { nullable: true }),
6794
+ __metadata("design:type", Number)
6795
+ ], mjBizAppsCommonOrganization_.prototype, "_mj__Latitude", void 0);
6796
+ __decorate([
6797
+ Field(() => Float, { nullable: true }),
6798
+ __metadata("design:type", Number)
6799
+ ], mjBizAppsCommonOrganization_.prototype, "_mj__Longitude", void 0);
6449
6800
  __decorate([
6450
6801
  Field({ nullable: true }),
6451
6802
  MaxLength(255),
@@ -6484,14 +6835,6 @@ __decorate([
6484
6835
  Field(() => Float, { nullable: true }),
6485
6836
  __metadata("design:type", Number)
6486
6837
  ], mjBizAppsCommonOrganization_.prototype, "PrimaryAddressLongitude", void 0);
6487
- __decorate([
6488
- Field(() => Float, { nullable: true }),
6489
- __metadata("design:type", Number)
6490
- ], mjBizAppsCommonOrganization_.prototype, "_mj__Latitude", void 0);
6491
- __decorate([
6492
- Field(() => Float, { nullable: true }),
6493
- __metadata("design:type", Number)
6494
- ], mjBizAppsCommonOrganization_.prototype, "_mj__Longitude", void 0);
6495
6838
  __decorate([
6496
6839
  Field({ nullable: true }),
6497
6840
  MaxLength(100),
@@ -6515,6 +6858,10 @@ __decorate([
6515
6858
  Field(() => Int, { nullable: true }),
6516
6859
  __metadata("design:type", Number)
6517
6860
  ], mjBizAppsCommonOrganization_.prototype, "ChildOrgCount", void 0);
6861
+ __decorate([
6862
+ Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
6863
+ __metadata("design:type", Array)
6864
+ ], mjBizAppsCommonOrganization_.prototype, "ReadableFields___", void 0);
6518
6865
  mjBizAppsCommonOrganization_ = __decorate([
6519
6866
  ObjectType({ description: `Companies, associations, government bodies, and other organizations with hierarchy support` })
6520
6867
  ], mjBizAppsCommonOrganization_);
@@ -6805,12 +7152,12 @@ __decorate([
6805
7152
  __metadata("design:type", String)
6806
7153
  ], mjBizAppsCommonPerson_.prototype, "ID", void 0);
6807
7154
  __decorate([
6808
- Field({ description: `First (given) name` }),
7155
+ Field({ nullable: true, description: `First (given) name` }),
6809
7156
  MaxLength(100),
6810
7157
  __metadata("design:type", String)
6811
7158
  ], mjBizAppsCommonPerson_.prototype, "FirstName", void 0);
6812
7159
  __decorate([
6813
- Field({ description: `Last (family) name` }),
7160
+ Field({ nullable: true, description: `Last (family) name` }),
6814
7161
  MaxLength(100),
6815
7162
  __metadata("design:type", String)
6816
7163
  ], mjBizAppsCommonPerson_.prototype, "LastName", void 0);
@@ -6872,7 +7219,7 @@ __decorate([
6872
7219
  __metadata("design:type", String)
6873
7220
  ], mjBizAppsCommonPerson_.prototype, "LinkedUserID", void 0);
6874
7221
  __decorate([
6875
- Field({ description: `Current status: Active, Inactive, or Deceased` }),
7222
+ Field({ nullable: true, description: `Current status: Active, Inactive, or Deceased` }),
6876
7223
  MaxLength(50),
6877
7224
  __metadata("design:type", String)
6878
7225
  ], mjBizAppsCommonPerson_.prototype, "Status", void 0);
@@ -6885,15 +7232,33 @@ __decorate([
6885
7232
  __metadata("design:type", Date)
6886
7233
  ], mjBizAppsCommonPerson_.prototype, "_mj__UpdatedAt", void 0);
6887
7234
  __decorate([
6888
- Field(),
7235
+ Field({ nullable: true }),
6889
7236
  MaxLength(201),
6890
7237
  __metadata("design:type", String)
6891
7238
  ], mjBizAppsCommonPerson_.prototype, "DisplayName", void 0);
7239
+ __decorate([
7240
+ Field({ nullable: true, description: `Current primary seniority level for this person.` }),
7241
+ MaxLength(36),
7242
+ __metadata("design:type", String)
7243
+ ], mjBizAppsCommonPerson_.prototype, "SeniorityLevelID", void 0);
6892
7244
  __decorate([
6893
7245
  Field({ nullable: true }),
6894
7246
  MaxLength(100),
6895
7247
  __metadata("design:type", String)
6896
7248
  ], mjBizAppsCommonPerson_.prototype, "LinkedUser", void 0);
7249
+ __decorate([
7250
+ Field(() => Float, { nullable: true }),
7251
+ __metadata("design:type", Number)
7252
+ ], mjBizAppsCommonPerson_.prototype, "_mj__Latitude", void 0);
7253
+ __decorate([
7254
+ Field(() => Float, { nullable: true }),
7255
+ __metadata("design:type", Number)
7256
+ ], mjBizAppsCommonPerson_.prototype, "_mj__Longitude", void 0);
7257
+ __decorate([
7258
+ Field({ nullable: true }),
7259
+ MaxLength(100),
7260
+ __metadata("design:type", String)
7261
+ ], mjBizAppsCommonPerson_.prototype, "SeniorityLevel", void 0);
6897
7262
  __decorate([
6898
7263
  Field({ nullable: true }),
6899
7264
  MaxLength(255),
@@ -6932,14 +7297,6 @@ __decorate([
6932
7297
  Field(() => Float, { nullable: true }),
6933
7298
  __metadata("design:type", Number)
6934
7299
  ], mjBizAppsCommonPerson_.prototype, "PrimaryAddressLongitude", void 0);
6935
- __decorate([
6936
- Field(() => Float, { nullable: true }),
6937
- __metadata("design:type", Number)
6938
- ], mjBizAppsCommonPerson_.prototype, "_mj__Latitude", void 0);
6939
- __decorate([
6940
- Field(() => Float, { nullable: true }),
6941
- __metadata("design:type", Number)
6942
- ], mjBizAppsCommonPerson_.prototype, "_mj__Longitude", void 0);
6943
7300
  __decorate([
6944
7301
  Field({ nullable: true }),
6945
7302
  MaxLength(100),
@@ -6970,6 +7327,20 @@ __decorate([
6970
7327
  MaxLength(255),
6971
7328
  __metadata("design:type", String)
6972
7329
  ], mjBizAppsCommonPerson_.prototype, "CurrentJobTitle", void 0);
7330
+ __decorate([
7331
+ Field({ nullable: true }),
7332
+ MaxLength(36),
7333
+ __metadata("design:type", String)
7334
+ ], mjBizAppsCommonPerson_.prototype, "PrimaryJobFunctionID", void 0);
7335
+ __decorate([
7336
+ Field({ nullable: true }),
7337
+ MaxLength(100),
7338
+ __metadata("design:type", String)
7339
+ ], mjBizAppsCommonPerson_.prototype, "PrimaryJobFunction", void 0);
7340
+ __decorate([
7341
+ Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
7342
+ __metadata("design:type", Array)
7343
+ ], mjBizAppsCommonPerson_.prototype, "ReadableFields___", void 0);
6973
7344
  mjBizAppsCommonPerson_ = __decorate([
6974
7345
  ObjectType({ description: `Individual people, optionally linked to MJ system user accounts` })
6975
7346
  ], mjBizAppsCommonPerson_);
@@ -7043,6 +7414,10 @@ __decorate([
7043
7414
  Field({ nullable: true }),
7044
7415
  __metadata("design:type", String)
7045
7416
  ], CreatemjBizAppsCommonPersonInput.prototype, "Status", void 0);
7417
+ __decorate([
7418
+ Field({ nullable: true }),
7419
+ __metadata("design:type", String)
7420
+ ], CreatemjBizAppsCommonPersonInput.prototype, "SeniorityLevelID", void 0);
7046
7421
  __decorate([
7047
7422
  Field(() => RestoreContextInput, { nullable: true }),
7048
7423
  __metadata("design:type", RestoreContextInput)
@@ -7120,147 +7495,429 @@ __decorate([
7120
7495
  Field({ nullable: true }),
7121
7496
  __metadata("design:type", String)
7122
7497
  ], UpdatemjBizAppsCommonPersonInput.prototype, "Status", void 0);
7498
+ __decorate([
7499
+ Field({ nullable: true }),
7500
+ __metadata("design:type", String)
7501
+ ], UpdatemjBizAppsCommonPersonInput.prototype, "SeniorityLevelID", void 0);
7502
+ __decorate([
7503
+ Field(() => [KeyValuePairInput], { nullable: true }),
7504
+ __metadata("design:type", Array)
7505
+ ], UpdatemjBizAppsCommonPersonInput.prototype, "OldValues___", void 0);
7506
+ __decorate([
7507
+ Field(() => RestoreContextInput, { nullable: true }),
7508
+ __metadata("design:type", RestoreContextInput)
7509
+ ], UpdatemjBizAppsCommonPersonInput.prototype, "RestoreContext___", void 0);
7510
+ UpdatemjBizAppsCommonPersonInput = __decorate([
7511
+ InputType()
7512
+ ], UpdatemjBizAppsCommonPersonInput);
7513
+ export { UpdatemjBizAppsCommonPersonInput };
7514
+ //****************************************************************************
7515
+ // RESOLVER for MJ_BizApps_Common: People
7516
+ //****************************************************************************
7517
+ let RunmjBizAppsCommonPersonViewResult = class RunmjBizAppsCommonPersonViewResult {
7518
+ };
7519
+ __decorate([
7520
+ Field(() => [mjBizAppsCommonPerson_]),
7521
+ __metadata("design:type", Array)
7522
+ ], RunmjBizAppsCommonPersonViewResult.prototype, "Results", void 0);
7523
+ __decorate([
7524
+ Field(() => String, { nullable: true }),
7525
+ __metadata("design:type", String)
7526
+ ], RunmjBizAppsCommonPersonViewResult.prototype, "UserViewRunID", void 0);
7527
+ __decorate([
7528
+ Field(() => Int, { nullable: true }),
7529
+ __metadata("design:type", Number)
7530
+ ], RunmjBizAppsCommonPersonViewResult.prototype, "RowCount", void 0);
7531
+ __decorate([
7532
+ Field(() => Int, { nullable: true }),
7533
+ __metadata("design:type", Number)
7534
+ ], RunmjBizAppsCommonPersonViewResult.prototype, "TotalRowCount", void 0);
7535
+ __decorate([
7536
+ Field(() => Int, { nullable: true }),
7537
+ __metadata("design:type", Number)
7538
+ ], RunmjBizAppsCommonPersonViewResult.prototype, "ExecutionTime", void 0);
7539
+ __decorate([
7540
+ Field({ nullable: true }),
7541
+ __metadata("design:type", String)
7542
+ ], RunmjBizAppsCommonPersonViewResult.prototype, "ErrorMessage", void 0);
7543
+ __decorate([
7544
+ Field(() => Boolean, { nullable: false }),
7545
+ __metadata("design:type", Boolean)
7546
+ ], RunmjBizAppsCommonPersonViewResult.prototype, "Success", void 0);
7547
+ RunmjBizAppsCommonPersonViewResult = __decorate([
7548
+ ObjectType()
7549
+ ], RunmjBizAppsCommonPersonViewResult);
7550
+ export { RunmjBizAppsCommonPersonViewResult };
7551
+ let mjBizAppsCommonPersonResolver = class mjBizAppsCommonPersonResolver extends ResolverBase {
7552
+ async RunmjBizAppsCommonPersonViewByID(input, { providers, userPayload }, pubSub) {
7553
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
7554
+ return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
7555
+ }
7556
+ async RunmjBizAppsCommonPersonViewByName(input, { providers, userPayload }, pubSub) {
7557
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
7558
+ return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
7559
+ }
7560
+ async RunmjBizAppsCommonPersonDynamicView(input, { providers, userPayload }, pubSub) {
7561
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
7562
+ input.EntityName = 'MJ_BizApps_Common: People';
7563
+ return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
7564
+ }
7565
+ async mjBizAppsCommonPerson(ID, { userPayload, providers }, pubSub) {
7566
+ this.CheckUserReadPermissions('MJ_BizApps_Common: People', userPayload);
7567
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
7568
+ const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsCommon', 'vwPeople')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Common: People', userPayload, EntityPermissionType.Read, 'AND');
7569
+ const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
7570
+ const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Common: People', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
7571
+ return result;
7572
+ }
7573
+ async CreatemjBizAppsCommonPerson(input, { providers, userPayload }, pubSub) {
7574
+ const provider = GetReadWriteProvider(providers);
7575
+ return this.CreateRecord('MJ_BizApps_Common: People', input, provider, userPayload, pubSub);
7576
+ }
7577
+ async UpdatemjBizAppsCommonPerson(input, { providers, userPayload }, pubSub) {
7578
+ const provider = GetReadWriteProvider(providers);
7579
+ return this.UpdateRecord('MJ_BizApps_Common: People', input, provider, userPayload, pubSub);
7580
+ }
7581
+ async DeletemjBizAppsCommonPerson(ID, options, { providers, userPayload }, pubSub) {
7582
+ const provider = GetReadWriteProvider(providers);
7583
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
7584
+ return this.DeleteRecord('MJ_BizApps_Common: People', key, options, provider, userPayload, pubSub);
7585
+ }
7586
+ };
7587
+ __decorate([
7588
+ Query(() => RunmjBizAppsCommonPersonViewResult),
7589
+ __param(0, Arg('input', () => RunViewByIDInput)),
7590
+ __param(1, Ctx()),
7591
+ __param(2, PubSub()),
7592
+ __metadata("design:type", Function),
7593
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
7594
+ __metadata("design:returntype", Promise)
7595
+ ], mjBizAppsCommonPersonResolver.prototype, "RunmjBizAppsCommonPersonViewByID", null);
7596
+ __decorate([
7597
+ Query(() => RunmjBizAppsCommonPersonViewResult),
7598
+ __param(0, Arg('input', () => RunViewByNameInput)),
7599
+ __param(1, Ctx()),
7600
+ __param(2, PubSub()),
7601
+ __metadata("design:type", Function),
7602
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
7603
+ __metadata("design:returntype", Promise)
7604
+ ], mjBizAppsCommonPersonResolver.prototype, "RunmjBizAppsCommonPersonViewByName", null);
7605
+ __decorate([
7606
+ Query(() => RunmjBizAppsCommonPersonViewResult),
7607
+ __param(0, Arg('input', () => RunDynamicViewInput)),
7608
+ __param(1, Ctx()),
7609
+ __param(2, PubSub()),
7610
+ __metadata("design:type", Function),
7611
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
7612
+ __metadata("design:returntype", Promise)
7613
+ ], mjBizAppsCommonPersonResolver.prototype, "RunmjBizAppsCommonPersonDynamicView", null);
7614
+ __decorate([
7615
+ Query(() => mjBizAppsCommonPerson_, { nullable: true }),
7616
+ __param(0, Arg('ID', () => String)),
7617
+ __param(1, Ctx()),
7618
+ __param(2, PubSub()),
7619
+ __metadata("design:type", Function),
7620
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
7621
+ __metadata("design:returntype", Promise)
7622
+ ], mjBizAppsCommonPersonResolver.prototype, "mjBizAppsCommonPerson", null);
7623
+ __decorate([
7624
+ Mutation(() => mjBizAppsCommonPerson_),
7625
+ __param(0, Arg('input', () => CreatemjBizAppsCommonPersonInput)),
7626
+ __param(1, Ctx()),
7627
+ __param(2, PubSub()),
7628
+ __metadata("design:type", Function),
7629
+ __metadata("design:paramtypes", [CreatemjBizAppsCommonPersonInput, Object, PubSubEngine]),
7630
+ __metadata("design:returntype", Promise)
7631
+ ], mjBizAppsCommonPersonResolver.prototype, "CreatemjBizAppsCommonPerson", null);
7632
+ __decorate([
7633
+ Mutation(() => mjBizAppsCommonPerson_),
7634
+ __param(0, Arg('input', () => UpdatemjBizAppsCommonPersonInput)),
7635
+ __param(1, Ctx()),
7636
+ __param(2, PubSub()),
7637
+ __metadata("design:type", Function),
7638
+ __metadata("design:paramtypes", [UpdatemjBizAppsCommonPersonInput, Object, PubSubEngine]),
7639
+ __metadata("design:returntype", Promise)
7640
+ ], mjBizAppsCommonPersonResolver.prototype, "UpdatemjBizAppsCommonPerson", null);
7641
+ __decorate([
7642
+ Mutation(() => mjBizAppsCommonPerson_),
7643
+ __param(0, Arg('ID', () => String)),
7644
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
7645
+ __param(2, Ctx()),
7646
+ __param(3, PubSub()),
7647
+ __metadata("design:type", Function),
7648
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
7649
+ __metadata("design:returntype", Promise)
7650
+ ], mjBizAppsCommonPersonResolver.prototype, "DeletemjBizAppsCommonPerson", null);
7651
+ mjBizAppsCommonPersonResolver = __decorate([
7652
+ Resolver(mjBizAppsCommonPerson_)
7653
+ ], mjBizAppsCommonPersonResolver);
7654
+ export { mjBizAppsCommonPersonResolver };
7655
+ //****************************************************************************
7656
+ // ENTITY CLASS for MJ_BizApps_Common: Person Job Functions
7657
+ //****************************************************************************
7658
+ let mjBizAppsCommonPersonJobFunction_ = class mjBizAppsCommonPersonJobFunction_ {
7659
+ };
7660
+ __decorate([
7661
+ Field(),
7662
+ MaxLength(36),
7663
+ __metadata("design:type", String)
7664
+ ], mjBizAppsCommonPersonJobFunction_.prototype, "ID", void 0);
7665
+ __decorate([
7666
+ Field({ nullable: true }),
7667
+ MaxLength(36),
7668
+ __metadata("design:type", String)
7669
+ ], mjBizAppsCommonPersonJobFunction_.prototype, "PersonID", void 0);
7670
+ __decorate([
7671
+ Field({ nullable: true }),
7672
+ MaxLength(36),
7673
+ __metadata("design:type", String)
7674
+ ], mjBizAppsCommonPersonJobFunction_.prototype, "JobFunctionID", void 0);
7675
+ __decorate([
7676
+ Field(() => Int, { nullable: true }),
7677
+ __metadata("design:type", Number)
7678
+ ], mjBizAppsCommonPersonJobFunction_.prototype, "Sequence", void 0);
7679
+ __decorate([
7680
+ Field({ nullable: true }),
7681
+ MaxLength(20),
7682
+ __metadata("design:type", String)
7683
+ ], mjBizAppsCommonPersonJobFunction_.prototype, "Source", void 0);
7684
+ __decorate([
7685
+ Field(() => Float, { nullable: true }),
7686
+ __metadata("design:type", Number)
7687
+ ], mjBizAppsCommonPersonJobFunction_.prototype, "Confidence", void 0);
7688
+ __decorate([
7689
+ Field(),
7690
+ __metadata("design:type", Date)
7691
+ ], mjBizAppsCommonPersonJobFunction_.prototype, "_mj__CreatedAt", void 0);
7692
+ __decorate([
7693
+ Field(),
7694
+ __metadata("design:type", Date)
7695
+ ], mjBizAppsCommonPersonJobFunction_.prototype, "_mj__UpdatedAt", void 0);
7696
+ __decorate([
7697
+ Field({ nullable: true }),
7698
+ MaxLength(201),
7699
+ __metadata("design:type", String)
7700
+ ], mjBizAppsCommonPersonJobFunction_.prototype, "Person", void 0);
7701
+ __decorate([
7702
+ Field({ nullable: true }),
7703
+ MaxLength(100),
7704
+ __metadata("design:type", String)
7705
+ ], mjBizAppsCommonPersonJobFunction_.prototype, "JobFunction", void 0);
7706
+ __decorate([
7707
+ Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
7708
+ __metadata("design:type", Array)
7709
+ ], mjBizAppsCommonPersonJobFunction_.prototype, "ReadableFields___", void 0);
7710
+ mjBizAppsCommonPersonJobFunction_ = __decorate([
7711
+ ObjectType({ description: `1:M assignment of job functions to a person, supporting plural functions and ranking order.` })
7712
+ ], mjBizAppsCommonPersonJobFunction_);
7713
+ export { mjBizAppsCommonPersonJobFunction_ };
7714
+ //****************************************************************************
7715
+ // INPUT TYPE for MJ_BizApps_Common: Person Job Functions
7716
+ //****************************************************************************
7717
+ let CreatemjBizAppsCommonPersonJobFunctionInput = class CreatemjBizAppsCommonPersonJobFunctionInput {
7718
+ };
7719
+ __decorate([
7720
+ Field({ nullable: true }),
7721
+ __metadata("design:type", String)
7722
+ ], CreatemjBizAppsCommonPersonJobFunctionInput.prototype, "ID", void 0);
7723
+ __decorate([
7724
+ Field({ nullable: true }),
7725
+ __metadata("design:type", String)
7726
+ ], CreatemjBizAppsCommonPersonJobFunctionInput.prototype, "PersonID", void 0);
7727
+ __decorate([
7728
+ Field({ nullable: true }),
7729
+ __metadata("design:type", String)
7730
+ ], CreatemjBizAppsCommonPersonJobFunctionInput.prototype, "JobFunctionID", void 0);
7731
+ __decorate([
7732
+ Field(() => Int, { nullable: true }),
7733
+ __metadata("design:type", Number)
7734
+ ], CreatemjBizAppsCommonPersonJobFunctionInput.prototype, "Sequence", void 0);
7735
+ __decorate([
7736
+ Field({ nullable: true }),
7737
+ __metadata("design:type", String)
7738
+ ], CreatemjBizAppsCommonPersonJobFunctionInput.prototype, "Source", void 0);
7739
+ __decorate([
7740
+ Field(() => Float, { nullable: true }),
7741
+ __metadata("design:type", Number)
7742
+ ], CreatemjBizAppsCommonPersonJobFunctionInput.prototype, "Confidence", void 0);
7743
+ __decorate([
7744
+ Field(() => RestoreContextInput, { nullable: true }),
7745
+ __metadata("design:type", RestoreContextInput)
7746
+ ], CreatemjBizAppsCommonPersonJobFunctionInput.prototype, "RestoreContext___", void 0);
7747
+ CreatemjBizAppsCommonPersonJobFunctionInput = __decorate([
7748
+ InputType()
7749
+ ], CreatemjBizAppsCommonPersonJobFunctionInput);
7750
+ export { CreatemjBizAppsCommonPersonJobFunctionInput };
7751
+ //****************************************************************************
7752
+ // INPUT TYPE for MJ_BizApps_Common: Person Job Functions
7753
+ //****************************************************************************
7754
+ let UpdatemjBizAppsCommonPersonJobFunctionInput = class UpdatemjBizAppsCommonPersonJobFunctionInput {
7755
+ };
7756
+ __decorate([
7757
+ Field(),
7758
+ __metadata("design:type", String)
7759
+ ], UpdatemjBizAppsCommonPersonJobFunctionInput.prototype, "ID", void 0);
7760
+ __decorate([
7761
+ Field({ nullable: true }),
7762
+ __metadata("design:type", String)
7763
+ ], UpdatemjBizAppsCommonPersonJobFunctionInput.prototype, "PersonID", void 0);
7764
+ __decorate([
7765
+ Field({ nullable: true }),
7766
+ __metadata("design:type", String)
7767
+ ], UpdatemjBizAppsCommonPersonJobFunctionInput.prototype, "JobFunctionID", void 0);
7768
+ __decorate([
7769
+ Field(() => Int, { nullable: true }),
7770
+ __metadata("design:type", Number)
7771
+ ], UpdatemjBizAppsCommonPersonJobFunctionInput.prototype, "Sequence", void 0);
7772
+ __decorate([
7773
+ Field({ nullable: true }),
7774
+ __metadata("design:type", String)
7775
+ ], UpdatemjBizAppsCommonPersonJobFunctionInput.prototype, "Source", void 0);
7776
+ __decorate([
7777
+ Field(() => Float, { nullable: true }),
7778
+ __metadata("design:type", Number)
7779
+ ], UpdatemjBizAppsCommonPersonJobFunctionInput.prototype, "Confidence", void 0);
7123
7780
  __decorate([
7124
7781
  Field(() => [KeyValuePairInput], { nullable: true }),
7125
7782
  __metadata("design:type", Array)
7126
- ], UpdatemjBizAppsCommonPersonInput.prototype, "OldValues___", void 0);
7783
+ ], UpdatemjBizAppsCommonPersonJobFunctionInput.prototype, "OldValues___", void 0);
7127
7784
  __decorate([
7128
7785
  Field(() => RestoreContextInput, { nullable: true }),
7129
7786
  __metadata("design:type", RestoreContextInput)
7130
- ], UpdatemjBizAppsCommonPersonInput.prototype, "RestoreContext___", void 0);
7131
- UpdatemjBizAppsCommonPersonInput = __decorate([
7787
+ ], UpdatemjBizAppsCommonPersonJobFunctionInput.prototype, "RestoreContext___", void 0);
7788
+ UpdatemjBizAppsCommonPersonJobFunctionInput = __decorate([
7132
7789
  InputType()
7133
- ], UpdatemjBizAppsCommonPersonInput);
7134
- export { UpdatemjBizAppsCommonPersonInput };
7790
+ ], UpdatemjBizAppsCommonPersonJobFunctionInput);
7791
+ export { UpdatemjBizAppsCommonPersonJobFunctionInput };
7135
7792
  //****************************************************************************
7136
- // RESOLVER for MJ_BizApps_Common: People
7793
+ // RESOLVER for MJ_BizApps_Common: Person Job Functions
7137
7794
  //****************************************************************************
7138
- let RunmjBizAppsCommonPersonViewResult = class RunmjBizAppsCommonPersonViewResult {
7795
+ let RunmjBizAppsCommonPersonJobFunctionViewResult = class RunmjBizAppsCommonPersonJobFunctionViewResult {
7139
7796
  };
7140
7797
  __decorate([
7141
- Field(() => [mjBizAppsCommonPerson_]),
7798
+ Field(() => [mjBizAppsCommonPersonJobFunction_]),
7142
7799
  __metadata("design:type", Array)
7143
- ], RunmjBizAppsCommonPersonViewResult.prototype, "Results", void 0);
7800
+ ], RunmjBizAppsCommonPersonJobFunctionViewResult.prototype, "Results", void 0);
7144
7801
  __decorate([
7145
7802
  Field(() => String, { nullable: true }),
7146
7803
  __metadata("design:type", String)
7147
- ], RunmjBizAppsCommonPersonViewResult.prototype, "UserViewRunID", void 0);
7804
+ ], RunmjBizAppsCommonPersonJobFunctionViewResult.prototype, "UserViewRunID", void 0);
7148
7805
  __decorate([
7149
7806
  Field(() => Int, { nullable: true }),
7150
7807
  __metadata("design:type", Number)
7151
- ], RunmjBizAppsCommonPersonViewResult.prototype, "RowCount", void 0);
7808
+ ], RunmjBizAppsCommonPersonJobFunctionViewResult.prototype, "RowCount", void 0);
7152
7809
  __decorate([
7153
7810
  Field(() => Int, { nullable: true }),
7154
7811
  __metadata("design:type", Number)
7155
- ], RunmjBizAppsCommonPersonViewResult.prototype, "TotalRowCount", void 0);
7812
+ ], RunmjBizAppsCommonPersonJobFunctionViewResult.prototype, "TotalRowCount", void 0);
7156
7813
  __decorate([
7157
7814
  Field(() => Int, { nullable: true }),
7158
7815
  __metadata("design:type", Number)
7159
- ], RunmjBizAppsCommonPersonViewResult.prototype, "ExecutionTime", void 0);
7816
+ ], RunmjBizAppsCommonPersonJobFunctionViewResult.prototype, "ExecutionTime", void 0);
7160
7817
  __decorate([
7161
7818
  Field({ nullable: true }),
7162
7819
  __metadata("design:type", String)
7163
- ], RunmjBizAppsCommonPersonViewResult.prototype, "ErrorMessage", void 0);
7820
+ ], RunmjBizAppsCommonPersonJobFunctionViewResult.prototype, "ErrorMessage", void 0);
7164
7821
  __decorate([
7165
7822
  Field(() => Boolean, { nullable: false }),
7166
7823
  __metadata("design:type", Boolean)
7167
- ], RunmjBizAppsCommonPersonViewResult.prototype, "Success", void 0);
7168
- RunmjBizAppsCommonPersonViewResult = __decorate([
7824
+ ], RunmjBizAppsCommonPersonJobFunctionViewResult.prototype, "Success", void 0);
7825
+ RunmjBizAppsCommonPersonJobFunctionViewResult = __decorate([
7169
7826
  ObjectType()
7170
- ], RunmjBizAppsCommonPersonViewResult);
7171
- export { RunmjBizAppsCommonPersonViewResult };
7172
- let mjBizAppsCommonPersonResolver = class mjBizAppsCommonPersonResolver extends ResolverBase {
7173
- async RunmjBizAppsCommonPersonViewByID(input, { providers, userPayload }, pubSub) {
7827
+ ], RunmjBizAppsCommonPersonJobFunctionViewResult);
7828
+ export { RunmjBizAppsCommonPersonJobFunctionViewResult };
7829
+ let mjBizAppsCommonPersonJobFunctionResolver = class mjBizAppsCommonPersonJobFunctionResolver extends ResolverBase {
7830
+ async RunmjBizAppsCommonPersonJobFunctionViewByID(input, { providers, userPayload }, pubSub) {
7174
7831
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
7175
7832
  return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
7176
7833
  }
7177
- async RunmjBizAppsCommonPersonViewByName(input, { providers, userPayload }, pubSub) {
7834
+ async RunmjBizAppsCommonPersonJobFunctionViewByName(input, { providers, userPayload }, pubSub) {
7178
7835
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
7179
7836
  return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
7180
7837
  }
7181
- async RunmjBizAppsCommonPersonDynamicView(input, { providers, userPayload }, pubSub) {
7838
+ async RunmjBizAppsCommonPersonJobFunctionDynamicView(input, { providers, userPayload }, pubSub) {
7182
7839
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
7183
- input.EntityName = 'MJ_BizApps_Common: People';
7840
+ input.EntityName = 'MJ_BizApps_Common: Person Job Functions';
7184
7841
  return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
7185
7842
  }
7186
- async mjBizAppsCommonPerson(ID, { userPayload, providers }, pubSub) {
7187
- this.CheckUserReadPermissions('MJ_BizApps_Common: People', userPayload);
7843
+ async mjBizAppsCommonPersonJobFunction(ID, { userPayload, providers }, pubSub) {
7844
+ this.CheckUserReadPermissions('MJ_BizApps_Common: Person Job Functions', userPayload);
7188
7845
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
7189
- const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsCommon', 'vwPeople')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Common: People', userPayload, EntityPermissionType.Read, 'AND');
7846
+ const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsCommon', 'vwPersonJobFunctions')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Common: Person Job Functions', userPayload, EntityPermissionType.Read, 'AND');
7190
7847
  const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
7191
- const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Common: People', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
7848
+ const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Common: Person Job Functions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
7192
7849
  return result;
7193
7850
  }
7194
- async CreatemjBizAppsCommonPerson(input, { providers, userPayload }, pubSub) {
7851
+ async CreatemjBizAppsCommonPersonJobFunction(input, { providers, userPayload }, pubSub) {
7195
7852
  const provider = GetReadWriteProvider(providers);
7196
- return this.CreateRecord('MJ_BizApps_Common: People', input, provider, userPayload, pubSub);
7853
+ return this.CreateRecord('MJ_BizApps_Common: Person Job Functions', input, provider, userPayload, pubSub);
7197
7854
  }
7198
- async UpdatemjBizAppsCommonPerson(input, { providers, userPayload }, pubSub) {
7855
+ async UpdatemjBizAppsCommonPersonJobFunction(input, { providers, userPayload }, pubSub) {
7199
7856
  const provider = GetReadWriteProvider(providers);
7200
- return this.UpdateRecord('MJ_BizApps_Common: People', input, provider, userPayload, pubSub);
7857
+ return this.UpdateRecord('MJ_BizApps_Common: Person Job Functions', input, provider, userPayload, pubSub);
7201
7858
  }
7202
- async DeletemjBizAppsCommonPerson(ID, options, { providers, userPayload }, pubSub) {
7859
+ async DeletemjBizAppsCommonPersonJobFunction(ID, options, { providers, userPayload }, pubSub) {
7203
7860
  const provider = GetReadWriteProvider(providers);
7204
7861
  const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
7205
- return this.DeleteRecord('MJ_BizApps_Common: People', key, options, provider, userPayload, pubSub);
7862
+ return this.DeleteRecord('MJ_BizApps_Common: Person Job Functions', key, options, provider, userPayload, pubSub);
7206
7863
  }
7207
7864
  };
7208
7865
  __decorate([
7209
- Query(() => RunmjBizAppsCommonPersonViewResult),
7866
+ Query(() => RunmjBizAppsCommonPersonJobFunctionViewResult),
7210
7867
  __param(0, Arg('input', () => RunViewByIDInput)),
7211
7868
  __param(1, Ctx()),
7212
7869
  __param(2, PubSub()),
7213
7870
  __metadata("design:type", Function),
7214
7871
  __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
7215
7872
  __metadata("design:returntype", Promise)
7216
- ], mjBizAppsCommonPersonResolver.prototype, "RunmjBizAppsCommonPersonViewByID", null);
7873
+ ], mjBizAppsCommonPersonJobFunctionResolver.prototype, "RunmjBizAppsCommonPersonJobFunctionViewByID", null);
7217
7874
  __decorate([
7218
- Query(() => RunmjBizAppsCommonPersonViewResult),
7875
+ Query(() => RunmjBizAppsCommonPersonJobFunctionViewResult),
7219
7876
  __param(0, Arg('input', () => RunViewByNameInput)),
7220
7877
  __param(1, Ctx()),
7221
7878
  __param(2, PubSub()),
7222
7879
  __metadata("design:type", Function),
7223
7880
  __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
7224
7881
  __metadata("design:returntype", Promise)
7225
- ], mjBizAppsCommonPersonResolver.prototype, "RunmjBizAppsCommonPersonViewByName", null);
7882
+ ], mjBizAppsCommonPersonJobFunctionResolver.prototype, "RunmjBizAppsCommonPersonJobFunctionViewByName", null);
7226
7883
  __decorate([
7227
- Query(() => RunmjBizAppsCommonPersonViewResult),
7884
+ Query(() => RunmjBizAppsCommonPersonJobFunctionViewResult),
7228
7885
  __param(0, Arg('input', () => RunDynamicViewInput)),
7229
7886
  __param(1, Ctx()),
7230
7887
  __param(2, PubSub()),
7231
7888
  __metadata("design:type", Function),
7232
7889
  __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
7233
7890
  __metadata("design:returntype", Promise)
7234
- ], mjBizAppsCommonPersonResolver.prototype, "RunmjBizAppsCommonPersonDynamicView", null);
7891
+ ], mjBizAppsCommonPersonJobFunctionResolver.prototype, "RunmjBizAppsCommonPersonJobFunctionDynamicView", null);
7235
7892
  __decorate([
7236
- Query(() => mjBizAppsCommonPerson_, { nullable: true }),
7893
+ Query(() => mjBizAppsCommonPersonJobFunction_, { nullable: true }),
7237
7894
  __param(0, Arg('ID', () => String)),
7238
7895
  __param(1, Ctx()),
7239
7896
  __param(2, PubSub()),
7240
7897
  __metadata("design:type", Function),
7241
7898
  __metadata("design:paramtypes", [String, Object, PubSubEngine]),
7242
7899
  __metadata("design:returntype", Promise)
7243
- ], mjBizAppsCommonPersonResolver.prototype, "mjBizAppsCommonPerson", null);
7900
+ ], mjBizAppsCommonPersonJobFunctionResolver.prototype, "mjBizAppsCommonPersonJobFunction", null);
7244
7901
  __decorate([
7245
- Mutation(() => mjBizAppsCommonPerson_),
7246
- __param(0, Arg('input', () => CreatemjBizAppsCommonPersonInput)),
7902
+ Mutation(() => mjBizAppsCommonPersonJobFunction_),
7903
+ __param(0, Arg('input', () => CreatemjBizAppsCommonPersonJobFunctionInput)),
7247
7904
  __param(1, Ctx()),
7248
7905
  __param(2, PubSub()),
7249
7906
  __metadata("design:type", Function),
7250
- __metadata("design:paramtypes", [CreatemjBizAppsCommonPersonInput, Object, PubSubEngine]),
7907
+ __metadata("design:paramtypes", [CreatemjBizAppsCommonPersonJobFunctionInput, Object, PubSubEngine]),
7251
7908
  __metadata("design:returntype", Promise)
7252
- ], mjBizAppsCommonPersonResolver.prototype, "CreatemjBizAppsCommonPerson", null);
7909
+ ], mjBizAppsCommonPersonJobFunctionResolver.prototype, "CreatemjBizAppsCommonPersonJobFunction", null);
7253
7910
  __decorate([
7254
- Mutation(() => mjBizAppsCommonPerson_),
7255
- __param(0, Arg('input', () => UpdatemjBizAppsCommonPersonInput)),
7911
+ Mutation(() => mjBizAppsCommonPersonJobFunction_),
7912
+ __param(0, Arg('input', () => UpdatemjBizAppsCommonPersonJobFunctionInput)),
7256
7913
  __param(1, Ctx()),
7257
7914
  __param(2, PubSub()),
7258
7915
  __metadata("design:type", Function),
7259
- __metadata("design:paramtypes", [UpdatemjBizAppsCommonPersonInput, Object, PubSubEngine]),
7916
+ __metadata("design:paramtypes", [UpdatemjBizAppsCommonPersonJobFunctionInput, Object, PubSubEngine]),
7260
7917
  __metadata("design:returntype", Promise)
7261
- ], mjBizAppsCommonPersonResolver.prototype, "UpdatemjBizAppsCommonPerson", null);
7918
+ ], mjBizAppsCommonPersonJobFunctionResolver.prototype, "UpdatemjBizAppsCommonPersonJobFunction", null);
7262
7919
  __decorate([
7263
- Mutation(() => mjBizAppsCommonPerson_),
7920
+ Mutation(() => mjBizAppsCommonPersonJobFunction_),
7264
7921
  __param(0, Arg('ID', () => String)),
7265
7922
  __param(1, Arg('options___', () => DeleteOptionsInput)),
7266
7923
  __param(2, Ctx()),
@@ -7268,11 +7925,11 @@ __decorate([
7268
7925
  __metadata("design:type", Function),
7269
7926
  __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
7270
7927
  __metadata("design:returntype", Promise)
7271
- ], mjBizAppsCommonPersonResolver.prototype, "DeletemjBizAppsCommonPerson", null);
7272
- mjBizAppsCommonPersonResolver = __decorate([
7273
- Resolver(mjBizAppsCommonPerson_)
7274
- ], mjBizAppsCommonPersonResolver);
7275
- export { mjBizAppsCommonPersonResolver };
7928
+ ], mjBizAppsCommonPersonJobFunctionResolver.prototype, "DeletemjBizAppsCommonPersonJobFunction", null);
7929
+ mjBizAppsCommonPersonJobFunctionResolver = __decorate([
7930
+ Resolver(mjBizAppsCommonPersonJobFunction_)
7931
+ ], mjBizAppsCommonPersonJobFunctionResolver);
7932
+ export { mjBizAppsCommonPersonJobFunctionResolver };
7276
7933
  //****************************************************************************
7277
7934
  // ENTITY CLASS for MJ_BizApps_Common: Relationship Types
7278
7935
  //****************************************************************************
@@ -7284,7 +7941,7 @@ __decorate([
7284
7941
  __metadata("design:type", String)
7285
7942
  ], mjBizAppsCommonRelationshipType_.prototype, "ID", void 0);
7286
7943
  __decorate([
7287
- Field({ description: `Display name for the relationship type, e.g. Employee, Spouse, Partner` }),
7944
+ Field({ nullable: true, description: `Display name for the relationship type, e.g. Employee, Spouse, Partner` }),
7288
7945
  MaxLength(100),
7289
7946
  __metadata("design:type", String)
7290
7947
  ], mjBizAppsCommonRelationshipType_.prototype, "Name", void 0);
@@ -7293,12 +7950,12 @@ __decorate([
7293
7950
  __metadata("design:type", String)
7294
7951
  ], mjBizAppsCommonRelationshipType_.prototype, "Description", void 0);
7295
7952
  __decorate([
7296
- Field({ description: `Which entity types this relationship connects: PersonToPerson, PersonToOrganization, or OrganizationToOrganization` }),
7953
+ Field({ nullable: true, description: `Which entity types this relationship connects: PersonToPerson, PersonToOrganization, or OrganizationToOrganization` }),
7297
7954
  MaxLength(50),
7298
7955
  __metadata("design:type", String)
7299
7956
  ], mjBizAppsCommonRelationshipType_.prototype, "Category", void 0);
7300
7957
  __decorate([
7301
- Field(() => Boolean, { description: `Whether the relationship has a direction. False for symmetric relationships like Spouse or Partner` }),
7958
+ Field(() => Boolean, { nullable: true, description: `Whether the relationship has a direction. False for symmetric relationships like Spouse or Partner` }),
7302
7959
  __metadata("design:type", Boolean)
7303
7960
  ], mjBizAppsCommonRelationshipType_.prototype, "IsDirectional", void 0);
7304
7961
  __decorate([
@@ -7312,7 +7969,7 @@ __decorate([
7312
7969
  __metadata("design:type", String)
7313
7970
  ], mjBizAppsCommonRelationshipType_.prototype, "ReverseLabel", void 0);
7314
7971
  __decorate([
7315
- Field(() => Boolean, { description: `Whether this type is available for selection in the UI. Inactive types are hidden from dropdowns but preserved for existing records` }),
7972
+ Field(() => Boolean, { nullable: true, description: `Whether this type is available for selection in the UI. Inactive types are hidden from dropdowns but preserved for existing records` }),
7316
7973
  __metadata("design:type", Boolean)
7317
7974
  ], mjBizAppsCommonRelationshipType_.prototype, "IsActive", void 0);
7318
7975
  __decorate([
@@ -7323,6 +7980,10 @@ __decorate([
7323
7980
  Field(),
7324
7981
  __metadata("design:type", Date)
7325
7982
  ], mjBizAppsCommonRelationshipType_.prototype, "_mj__UpdatedAt", void 0);
7983
+ __decorate([
7984
+ Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
7985
+ __metadata("design:type", Array)
7986
+ ], mjBizAppsCommonRelationshipType_.prototype, "ReadableFields___", void 0);
7326
7987
  mjBizAppsCommonRelationshipType_ = __decorate([
7327
7988
  ObjectType({ description: `Defines types of relationships between people and organizations with directionality and labeling` })
7328
7989
  ], mjBizAppsCommonRelationshipType_);
@@ -7573,7 +8234,7 @@ __decorate([
7573
8234
  __metadata("design:type", String)
7574
8235
  ], mjBizAppsCommonRelationship_.prototype, "ID", void 0);
7575
8236
  __decorate([
7576
- Field(),
8237
+ Field({ nullable: true }),
7577
8238
  MaxLength(36),
7578
8239
  __metadata("design:type", String)
7579
8240
  ], mjBizAppsCommonRelationship_.prototype, "RelationshipTypeID", void 0);
@@ -7611,7 +8272,7 @@ __decorate([
7611
8272
  __metadata("design:type", Date)
7612
8273
  ], mjBizAppsCommonRelationship_.prototype, "EndDate", void 0);
7613
8274
  __decorate([
7614
- Field({ description: `Current status: Active, Inactive, or Ended` }),
8275
+ Field({ nullable: true, description: `Current status: Active, Inactive, or Ended` }),
7615
8276
  MaxLength(50),
7616
8277
  __metadata("design:type", String)
7617
8278
  ], mjBizAppsCommonRelationship_.prototype, "Status", void 0);
@@ -7628,7 +8289,17 @@ __decorate([
7628
8289
  __metadata("design:type", Date)
7629
8290
  ], mjBizAppsCommonRelationship_.prototype, "_mj__UpdatedAt", void 0);
7630
8291
  __decorate([
7631
- Field(),
8292
+ Field({ nullable: true, description: `Company-specific job function for this relationship/employment link.` }),
8293
+ MaxLength(36),
8294
+ __metadata("design:type", String)
8295
+ ], mjBizAppsCommonRelationship_.prototype, "JobFunctionID", void 0);
8296
+ __decorate([
8297
+ Field({ nullable: true, description: `Company-specific seniority level for this relationship/employment link.` }),
8298
+ MaxLength(36),
8299
+ __metadata("design:type", String)
8300
+ ], mjBizAppsCommonRelationship_.prototype, "SeniorityLevelID", void 0);
8301
+ __decorate([
8302
+ Field({ nullable: true }),
7632
8303
  MaxLength(100),
7633
8304
  __metadata("design:type", String)
7634
8305
  ], mjBizAppsCommonRelationship_.prototype, "RelationshipType", void 0);
@@ -7652,6 +8323,20 @@ __decorate([
7652
8323
  MaxLength(255),
7653
8324
  __metadata("design:type", String)
7654
8325
  ], mjBizAppsCommonRelationship_.prototype, "ToOrganization", void 0);
8326
+ __decorate([
8327
+ Field({ nullable: true }),
8328
+ MaxLength(100),
8329
+ __metadata("design:type", String)
8330
+ ], mjBizAppsCommonRelationship_.prototype, "JobFunction", void 0);
8331
+ __decorate([
8332
+ Field({ nullable: true }),
8333
+ MaxLength(100),
8334
+ __metadata("design:type", String)
8335
+ ], mjBizAppsCommonRelationship_.prototype, "SeniorityLevel", void 0);
8336
+ __decorate([
8337
+ Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
8338
+ __metadata("design:type", Array)
8339
+ ], mjBizAppsCommonRelationship_.prototype, "ReadableFields___", void 0);
7655
8340
  mjBizAppsCommonRelationship_ = __decorate([
7656
8341
  ObjectType({ description: `Typed, directional links between people and organizations supporting Person-to-Person, Person-to-Organization, and Organization-to-Organization relationships` })
7657
8342
  ], mjBizAppsCommonRelationship_);
@@ -7705,6 +8390,14 @@ __decorate([
7705
8390
  Field({ nullable: true }),
7706
8391
  __metadata("design:type", String)
7707
8392
  ], CreatemjBizAppsCommonRelationshipInput.prototype, "Notes", void 0);
8393
+ __decorate([
8394
+ Field({ nullable: true }),
8395
+ __metadata("design:type", String)
8396
+ ], CreatemjBizAppsCommonRelationshipInput.prototype, "JobFunctionID", void 0);
8397
+ __decorate([
8398
+ Field({ nullable: true }),
8399
+ __metadata("design:type", String)
8400
+ ], CreatemjBizAppsCommonRelationshipInput.prototype, "SeniorityLevelID", void 0);
7708
8401
  __decorate([
7709
8402
  Field(() => RestoreContextInput, { nullable: true }),
7710
8403
  __metadata("design:type", RestoreContextInput)
@@ -7762,6 +8455,14 @@ __decorate([
7762
8455
  Field({ nullable: true }),
7763
8456
  __metadata("design:type", String)
7764
8457
  ], UpdatemjBizAppsCommonRelationshipInput.prototype, "Notes", void 0);
8458
+ __decorate([
8459
+ Field({ nullable: true }),
8460
+ __metadata("design:type", String)
8461
+ ], UpdatemjBizAppsCommonRelationshipInput.prototype, "JobFunctionID", void 0);
8462
+ __decorate([
8463
+ Field({ nullable: true }),
8464
+ __metadata("design:type", String)
8465
+ ], UpdatemjBizAppsCommonRelationshipInput.prototype, "SeniorityLevelID", void 0);
7765
8466
  __decorate([
7766
8467
  Field(() => [KeyValuePairInput], { nullable: true }),
7767
8468
  __metadata("design:type", Array)
@@ -7915,4 +8616,259 @@ mjBizAppsCommonRelationshipResolver = __decorate([
7915
8616
  Resolver(mjBizAppsCommonRelationship_)
7916
8617
  ], mjBizAppsCommonRelationshipResolver);
7917
8618
  export { mjBizAppsCommonRelationshipResolver };
8619
+ //****************************************************************************
8620
+ // ENTITY CLASS for MJ_BizApps_Common: Seniority Levels
8621
+ //****************************************************************************
8622
+ let mjBizAppsCommonSeniorityLevel_ = class mjBizAppsCommonSeniorityLevel_ {
8623
+ };
8624
+ __decorate([
8625
+ Field(),
8626
+ MaxLength(36),
8627
+ __metadata("design:type", String)
8628
+ ], mjBizAppsCommonSeniorityLevel_.prototype, "ID", void 0);
8629
+ __decorate([
8630
+ Field({ nullable: true }),
8631
+ MaxLength(100),
8632
+ __metadata("design:type", String)
8633
+ ], mjBizAppsCommonSeniorityLevel_.prototype, "Name", void 0);
8634
+ __decorate([
8635
+ Field({ nullable: true }),
8636
+ __metadata("design:type", String)
8637
+ ], mjBizAppsCommonSeniorityLevel_.prototype, "Description", void 0);
8638
+ __decorate([
8639
+ Field(() => Int, { nullable: true }),
8640
+ __metadata("design:type", Number)
8641
+ ], mjBizAppsCommonSeniorityLevel_.prototype, "Sequence", void 0);
8642
+ __decorate([
8643
+ Field({ nullable: true }),
8644
+ MaxLength(20),
8645
+ __metadata("design:type", String)
8646
+ ], mjBizAppsCommonSeniorityLevel_.prototype, "Status", void 0);
8647
+ __decorate([
8648
+ Field(),
8649
+ __metadata("design:type", Date)
8650
+ ], mjBizAppsCommonSeniorityLevel_.prototype, "_mj__CreatedAt", void 0);
8651
+ __decorate([
8652
+ Field(),
8653
+ __metadata("design:type", Date)
8654
+ ], mjBizAppsCommonSeniorityLevel_.prototype, "_mj__UpdatedAt", void 0);
8655
+ __decorate([
8656
+ Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
8657
+ __metadata("design:type", Array)
8658
+ ], mjBizAppsCommonSeniorityLevel_.prototype, "ReadableFields___", void 0);
8659
+ mjBizAppsCommonSeniorityLevel_ = __decorate([
8660
+ ObjectType({ description: `Career seniority levels carrying rank order (IC, Manager, Director, VP, C-Level) for skill and scope classification.` })
8661
+ ], mjBizAppsCommonSeniorityLevel_);
8662
+ export { mjBizAppsCommonSeniorityLevel_ };
8663
+ //****************************************************************************
8664
+ // INPUT TYPE for MJ_BizApps_Common: Seniority Levels
8665
+ //****************************************************************************
8666
+ let CreatemjBizAppsCommonSeniorityLevelInput = class CreatemjBizAppsCommonSeniorityLevelInput {
8667
+ };
8668
+ __decorate([
8669
+ Field({ nullable: true }),
8670
+ __metadata("design:type", String)
8671
+ ], CreatemjBizAppsCommonSeniorityLevelInput.prototype, "ID", void 0);
8672
+ __decorate([
8673
+ Field({ nullable: true }),
8674
+ __metadata("design:type", String)
8675
+ ], CreatemjBizAppsCommonSeniorityLevelInput.prototype, "Name", void 0);
8676
+ __decorate([
8677
+ Field({ nullable: true }),
8678
+ __metadata("design:type", String)
8679
+ ], CreatemjBizAppsCommonSeniorityLevelInput.prototype, "Description", void 0);
8680
+ __decorate([
8681
+ Field(() => Int, { nullable: true }),
8682
+ __metadata("design:type", Number)
8683
+ ], CreatemjBizAppsCommonSeniorityLevelInput.prototype, "Sequence", void 0);
8684
+ __decorate([
8685
+ Field({ nullable: true }),
8686
+ __metadata("design:type", String)
8687
+ ], CreatemjBizAppsCommonSeniorityLevelInput.prototype, "Status", void 0);
8688
+ __decorate([
8689
+ Field(() => RestoreContextInput, { nullable: true }),
8690
+ __metadata("design:type", RestoreContextInput)
8691
+ ], CreatemjBizAppsCommonSeniorityLevelInput.prototype, "RestoreContext___", void 0);
8692
+ CreatemjBizAppsCommonSeniorityLevelInput = __decorate([
8693
+ InputType()
8694
+ ], CreatemjBizAppsCommonSeniorityLevelInput);
8695
+ export { CreatemjBizAppsCommonSeniorityLevelInput };
8696
+ //****************************************************************************
8697
+ // INPUT TYPE for MJ_BizApps_Common: Seniority Levels
8698
+ //****************************************************************************
8699
+ let UpdatemjBizAppsCommonSeniorityLevelInput = class UpdatemjBizAppsCommonSeniorityLevelInput {
8700
+ };
8701
+ __decorate([
8702
+ Field(),
8703
+ __metadata("design:type", String)
8704
+ ], UpdatemjBizAppsCommonSeniorityLevelInput.prototype, "ID", void 0);
8705
+ __decorate([
8706
+ Field({ nullable: true }),
8707
+ __metadata("design:type", String)
8708
+ ], UpdatemjBizAppsCommonSeniorityLevelInput.prototype, "Name", void 0);
8709
+ __decorate([
8710
+ Field({ nullable: true }),
8711
+ __metadata("design:type", String)
8712
+ ], UpdatemjBizAppsCommonSeniorityLevelInput.prototype, "Description", void 0);
8713
+ __decorate([
8714
+ Field(() => Int, { nullable: true }),
8715
+ __metadata("design:type", Number)
8716
+ ], UpdatemjBizAppsCommonSeniorityLevelInput.prototype, "Sequence", void 0);
8717
+ __decorate([
8718
+ Field({ nullable: true }),
8719
+ __metadata("design:type", String)
8720
+ ], UpdatemjBizAppsCommonSeniorityLevelInput.prototype, "Status", void 0);
8721
+ __decorate([
8722
+ Field(() => [KeyValuePairInput], { nullable: true }),
8723
+ __metadata("design:type", Array)
8724
+ ], UpdatemjBizAppsCommonSeniorityLevelInput.prototype, "OldValues___", void 0);
8725
+ __decorate([
8726
+ Field(() => RestoreContextInput, { nullable: true }),
8727
+ __metadata("design:type", RestoreContextInput)
8728
+ ], UpdatemjBizAppsCommonSeniorityLevelInput.prototype, "RestoreContext___", void 0);
8729
+ UpdatemjBizAppsCommonSeniorityLevelInput = __decorate([
8730
+ InputType()
8731
+ ], UpdatemjBizAppsCommonSeniorityLevelInput);
8732
+ export { UpdatemjBizAppsCommonSeniorityLevelInput };
8733
+ //****************************************************************************
8734
+ // RESOLVER for MJ_BizApps_Common: Seniority Levels
8735
+ //****************************************************************************
8736
+ let RunmjBizAppsCommonSeniorityLevelViewResult = class RunmjBizAppsCommonSeniorityLevelViewResult {
8737
+ };
8738
+ __decorate([
8739
+ Field(() => [mjBizAppsCommonSeniorityLevel_]),
8740
+ __metadata("design:type", Array)
8741
+ ], RunmjBizAppsCommonSeniorityLevelViewResult.prototype, "Results", void 0);
8742
+ __decorate([
8743
+ Field(() => String, { nullable: true }),
8744
+ __metadata("design:type", String)
8745
+ ], RunmjBizAppsCommonSeniorityLevelViewResult.prototype, "UserViewRunID", void 0);
8746
+ __decorate([
8747
+ Field(() => Int, { nullable: true }),
8748
+ __metadata("design:type", Number)
8749
+ ], RunmjBizAppsCommonSeniorityLevelViewResult.prototype, "RowCount", void 0);
8750
+ __decorate([
8751
+ Field(() => Int, { nullable: true }),
8752
+ __metadata("design:type", Number)
8753
+ ], RunmjBizAppsCommonSeniorityLevelViewResult.prototype, "TotalRowCount", void 0);
8754
+ __decorate([
8755
+ Field(() => Int, { nullable: true }),
8756
+ __metadata("design:type", Number)
8757
+ ], RunmjBizAppsCommonSeniorityLevelViewResult.prototype, "ExecutionTime", void 0);
8758
+ __decorate([
8759
+ Field({ nullable: true }),
8760
+ __metadata("design:type", String)
8761
+ ], RunmjBizAppsCommonSeniorityLevelViewResult.prototype, "ErrorMessage", void 0);
8762
+ __decorate([
8763
+ Field(() => Boolean, { nullable: false }),
8764
+ __metadata("design:type", Boolean)
8765
+ ], RunmjBizAppsCommonSeniorityLevelViewResult.prototype, "Success", void 0);
8766
+ RunmjBizAppsCommonSeniorityLevelViewResult = __decorate([
8767
+ ObjectType()
8768
+ ], RunmjBizAppsCommonSeniorityLevelViewResult);
8769
+ export { RunmjBizAppsCommonSeniorityLevelViewResult };
8770
+ let mjBizAppsCommonSeniorityLevelResolver = class mjBizAppsCommonSeniorityLevelResolver extends ResolverBase {
8771
+ async RunmjBizAppsCommonSeniorityLevelViewByID(input, { providers, userPayload }, pubSub) {
8772
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
8773
+ return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
8774
+ }
8775
+ async RunmjBizAppsCommonSeniorityLevelViewByName(input, { providers, userPayload }, pubSub) {
8776
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
8777
+ return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
8778
+ }
8779
+ async RunmjBizAppsCommonSeniorityLevelDynamicView(input, { providers, userPayload }, pubSub) {
8780
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
8781
+ input.EntityName = 'MJ_BizApps_Common: Seniority Levels';
8782
+ return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
8783
+ }
8784
+ async mjBizAppsCommonSeniorityLevel(ID, { userPayload, providers }, pubSub) {
8785
+ this.CheckUserReadPermissions('MJ_BizApps_Common: Seniority Levels', userPayload);
8786
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
8787
+ const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsCommon', 'vwSeniorityLevels')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Common: Seniority Levels', userPayload, EntityPermissionType.Read, 'AND');
8788
+ const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
8789
+ const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Common: Seniority Levels', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
8790
+ return result;
8791
+ }
8792
+ async CreatemjBizAppsCommonSeniorityLevel(input, { providers, userPayload }, pubSub) {
8793
+ const provider = GetReadWriteProvider(providers);
8794
+ return this.CreateRecord('MJ_BizApps_Common: Seniority Levels', input, provider, userPayload, pubSub);
8795
+ }
8796
+ async UpdatemjBizAppsCommonSeniorityLevel(input, { providers, userPayload }, pubSub) {
8797
+ const provider = GetReadWriteProvider(providers);
8798
+ return this.UpdateRecord('MJ_BizApps_Common: Seniority Levels', input, provider, userPayload, pubSub);
8799
+ }
8800
+ async DeletemjBizAppsCommonSeniorityLevel(ID, options, { providers, userPayload }, pubSub) {
8801
+ const provider = GetReadWriteProvider(providers);
8802
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
8803
+ return this.DeleteRecord('MJ_BizApps_Common: Seniority Levels', key, options, provider, userPayload, pubSub);
8804
+ }
8805
+ };
8806
+ __decorate([
8807
+ Query(() => RunmjBizAppsCommonSeniorityLevelViewResult),
8808
+ __param(0, Arg('input', () => RunViewByIDInput)),
8809
+ __param(1, Ctx()),
8810
+ __param(2, PubSub()),
8811
+ __metadata("design:type", Function),
8812
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
8813
+ __metadata("design:returntype", Promise)
8814
+ ], mjBizAppsCommonSeniorityLevelResolver.prototype, "RunmjBizAppsCommonSeniorityLevelViewByID", null);
8815
+ __decorate([
8816
+ Query(() => RunmjBizAppsCommonSeniorityLevelViewResult),
8817
+ __param(0, Arg('input', () => RunViewByNameInput)),
8818
+ __param(1, Ctx()),
8819
+ __param(2, PubSub()),
8820
+ __metadata("design:type", Function),
8821
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
8822
+ __metadata("design:returntype", Promise)
8823
+ ], mjBizAppsCommonSeniorityLevelResolver.prototype, "RunmjBizAppsCommonSeniorityLevelViewByName", null);
8824
+ __decorate([
8825
+ Query(() => RunmjBizAppsCommonSeniorityLevelViewResult),
8826
+ __param(0, Arg('input', () => RunDynamicViewInput)),
8827
+ __param(1, Ctx()),
8828
+ __param(2, PubSub()),
8829
+ __metadata("design:type", Function),
8830
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
8831
+ __metadata("design:returntype", Promise)
8832
+ ], mjBizAppsCommonSeniorityLevelResolver.prototype, "RunmjBizAppsCommonSeniorityLevelDynamicView", null);
8833
+ __decorate([
8834
+ Query(() => mjBizAppsCommonSeniorityLevel_, { nullable: true }),
8835
+ __param(0, Arg('ID', () => String)),
8836
+ __param(1, Ctx()),
8837
+ __param(2, PubSub()),
8838
+ __metadata("design:type", Function),
8839
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
8840
+ __metadata("design:returntype", Promise)
8841
+ ], mjBizAppsCommonSeniorityLevelResolver.prototype, "mjBizAppsCommonSeniorityLevel", null);
8842
+ __decorate([
8843
+ Mutation(() => mjBizAppsCommonSeniorityLevel_),
8844
+ __param(0, Arg('input', () => CreatemjBizAppsCommonSeniorityLevelInput)),
8845
+ __param(1, Ctx()),
8846
+ __param(2, PubSub()),
8847
+ __metadata("design:type", Function),
8848
+ __metadata("design:paramtypes", [CreatemjBizAppsCommonSeniorityLevelInput, Object, PubSubEngine]),
8849
+ __metadata("design:returntype", Promise)
8850
+ ], mjBizAppsCommonSeniorityLevelResolver.prototype, "CreatemjBizAppsCommonSeniorityLevel", null);
8851
+ __decorate([
8852
+ Mutation(() => mjBizAppsCommonSeniorityLevel_),
8853
+ __param(0, Arg('input', () => UpdatemjBizAppsCommonSeniorityLevelInput)),
8854
+ __param(1, Ctx()),
8855
+ __param(2, PubSub()),
8856
+ __metadata("design:type", Function),
8857
+ __metadata("design:paramtypes", [UpdatemjBizAppsCommonSeniorityLevelInput, Object, PubSubEngine]),
8858
+ __metadata("design:returntype", Promise)
8859
+ ], mjBizAppsCommonSeniorityLevelResolver.prototype, "UpdatemjBizAppsCommonSeniorityLevel", null);
8860
+ __decorate([
8861
+ Mutation(() => mjBizAppsCommonSeniorityLevel_),
8862
+ __param(0, Arg('ID', () => String)),
8863
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
8864
+ __param(2, Ctx()),
8865
+ __param(3, PubSub()),
8866
+ __metadata("design:type", Function),
8867
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
8868
+ __metadata("design:returntype", Promise)
8869
+ ], mjBizAppsCommonSeniorityLevelResolver.prototype, "DeletemjBizAppsCommonSeniorityLevel", null);
8870
+ mjBizAppsCommonSeniorityLevelResolver = __decorate([
8871
+ Resolver(mjBizAppsCommonSeniorityLevel_)
8872
+ ], mjBizAppsCommonSeniorityLevelResolver);
8873
+ export { mjBizAppsCommonSeniorityLevelResolver };
7918
8874
  //# sourceMappingURL=__mj_BizAppsCommon.js.map