@happyvertical/smrt-human-resources 0.61.3 → 0.61.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +372 -152
- package/dist/smrt-knowledge.json +3 -3
- package/package.json +8 -8
package/dist/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"timestamp": 0,
|
|
4
4
|
"packageName": "@happyvertical/smrt-human-resources",
|
|
5
|
-
"packageVersion": "0.61.
|
|
5
|
+
"packageVersion": "0.61.5",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-human-resources:Employment": {
|
|
8
8
|
"name": "employment",
|
|
@@ -10,14 +10,12 @@
|
|
|
10
10
|
"qualifiedName": "@happyvertical/smrt-human-resources:Employment",
|
|
11
11
|
"collection": "employments",
|
|
12
12
|
"description": "One person's employment with a tenant: the stable record applications and payroll key on. There is one per tenant and profile; a rehire adds an EmploymentTerm to the same row.",
|
|
13
|
-
"filePath": "
|
|
13
|
+
"filePath": "src/employment/models.ts",
|
|
14
14
|
"packageName": "@happyvertical/smrt-human-resources",
|
|
15
15
|
"fields": {
|
|
16
16
|
"tenantId": {
|
|
17
17
|
"type": "text",
|
|
18
|
-
"required": true,
|
|
19
18
|
"_meta": {
|
|
20
|
-
"sqlType": "UUID",
|
|
21
19
|
"__tenancy": {
|
|
22
20
|
"isTenantIdField": true,
|
|
23
21
|
"autoFilter": true,
|
|
@@ -27,68 +25,110 @@
|
|
|
27
25
|
"mode": "required",
|
|
28
26
|
"field": "tenantId",
|
|
29
27
|
"allowSuperAdminBypass": false
|
|
30
|
-
}
|
|
31
|
-
|
|
28
|
+
},
|
|
29
|
+
"__statedOptions": [
|
|
30
|
+
"sqlType",
|
|
31
|
+
"requiredFor",
|
|
32
|
+
"__tenancy"
|
|
33
|
+
],
|
|
34
|
+
"sqlType": "UUID",
|
|
35
|
+
"requiredFor": "tenant-scope"
|
|
36
|
+
},
|
|
37
|
+
"required": true
|
|
32
38
|
},
|
|
33
39
|
"profileId": {
|
|
34
40
|
"type": "crossPackageRef",
|
|
35
|
-
"required": false,
|
|
36
|
-
"related": "@happyvertical/smrt-profiles:Profile",
|
|
37
|
-
"description": "The person who works for you.",
|
|
38
41
|
"_meta": {
|
|
42
|
+
"__statedOptions": [
|
|
43
|
+
"description",
|
|
44
|
+
"onDelete",
|
|
45
|
+
"related"
|
|
46
|
+
],
|
|
39
47
|
"description": "The person who works for you.",
|
|
40
48
|
"onDelete": "RESTRICT"
|
|
41
|
-
}
|
|
49
|
+
},
|
|
50
|
+
"required": false,
|
|
51
|
+
"related": "@happyvertical/smrt-profiles:Profile",
|
|
52
|
+
"description": "The person who works for you."
|
|
42
53
|
},
|
|
43
54
|
"userId": {
|
|
44
55
|
"type": "crossPackageRef",
|
|
45
|
-
"required": false,
|
|
46
|
-
"related": "@happyvertical/smrt-users:User",
|
|
47
56
|
"_meta": {
|
|
48
|
-
"
|
|
49
|
-
|
|
57
|
+
"__statedOptions": [
|
|
58
|
+
"nullable",
|
|
59
|
+
"related",
|
|
60
|
+
"required"
|
|
61
|
+
],
|
|
62
|
+
"nullable": true,
|
|
63
|
+
"required": false
|
|
64
|
+
},
|
|
65
|
+
"required": false,
|
|
66
|
+
"related": "@happyvertical/smrt-users:User"
|
|
50
67
|
},
|
|
51
68
|
"employerProfileId": {
|
|
52
69
|
"type": "crossPackageRef",
|
|
53
|
-
"required": false,
|
|
54
|
-
"related": "@happyvertical/smrt-profiles:Profile",
|
|
55
70
|
"_meta": {
|
|
71
|
+
"__statedOptions": [
|
|
72
|
+
"nullable",
|
|
73
|
+
"onDelete",
|
|
74
|
+
"related",
|
|
75
|
+
"required"
|
|
76
|
+
],
|
|
56
77
|
"nullable": true,
|
|
57
|
-
"onDelete": "RESTRICT"
|
|
58
|
-
|
|
78
|
+
"onDelete": "RESTRICT",
|
|
79
|
+
"required": false
|
|
80
|
+
},
|
|
81
|
+
"required": false,
|
|
82
|
+
"related": "@happyvertical/smrt-profiles:Profile"
|
|
59
83
|
},
|
|
60
84
|
"employeeNumber": {
|
|
61
85
|
"type": "text",
|
|
62
|
-
"required": false,
|
|
63
|
-
"description": "Your own reference for this person, such as a staff number.",
|
|
64
86
|
"_meta": {
|
|
87
|
+
"__statedOptions": [
|
|
88
|
+
"description"
|
|
89
|
+
],
|
|
65
90
|
"description": "Your own reference for this person, such as a staff number."
|
|
66
|
-
}
|
|
91
|
+
},
|
|
92
|
+
"required": false,
|
|
93
|
+
"description": "Your own reference for this person, such as a staff number."
|
|
67
94
|
},
|
|
68
95
|
"workerType": {
|
|
69
96
|
"type": "text",
|
|
70
|
-
"required": false,
|
|
71
|
-
"description": "Whether they are an employee, contractor or another kind of worker.",
|
|
72
97
|
"_meta": {
|
|
98
|
+
"__statedOptions": [
|
|
99
|
+
"description"
|
|
100
|
+
],
|
|
73
101
|
"description": "Whether they are an employee, contractor or another kind of worker."
|
|
74
|
-
}
|
|
102
|
+
},
|
|
103
|
+
"required": false,
|
|
104
|
+
"description": "Whether they are an employee, contractor or another kind of worker."
|
|
75
105
|
},
|
|
76
106
|
"position": {
|
|
77
107
|
"type": "text",
|
|
78
|
-
"required": false,
|
|
79
|
-
"description": "Their role or trade.",
|
|
80
108
|
"_meta": {
|
|
109
|
+
"__statedOptions": [
|
|
110
|
+
"nullable",
|
|
111
|
+
"description",
|
|
112
|
+
"required"
|
|
113
|
+
],
|
|
114
|
+
"description": "Their role or trade.",
|
|
81
115
|
"nullable": true,
|
|
82
|
-
"
|
|
83
|
-
}
|
|
116
|
+
"required": false
|
|
117
|
+
},
|
|
118
|
+
"required": false,
|
|
119
|
+
"description": "Their role or trade."
|
|
84
120
|
},
|
|
85
121
|
"status": {
|
|
86
122
|
"type": "text",
|
|
87
|
-
"required": false,
|
|
88
|
-
"description": "Whether they currently work for you.",
|
|
89
123
|
"_meta": {
|
|
124
|
+
"__statedOptions": [
|
|
125
|
+
"description",
|
|
126
|
+
"enum"
|
|
127
|
+
],
|
|
90
128
|
"description": "Whether they currently work for you."
|
|
91
129
|
},
|
|
130
|
+
"required": false,
|
|
131
|
+
"description": "Whether they currently work for you.",
|
|
92
132
|
"enum": [
|
|
93
133
|
"active",
|
|
94
134
|
"on-leave",
|
|
@@ -309,14 +349,12 @@
|
|
|
309
349
|
"qualifiedName": "@happyvertical/smrt-human-resources:EmploymentTerm",
|
|
310
350
|
"collection": "employmentterms",
|
|
311
351
|
"description": "One continuous period of employment. endedOn is the last day employed (inclusive); null means the term is open. \"Employed on a date\" is answered from terms, never from Employment.status.",
|
|
312
|
-
"filePath": "
|
|
352
|
+
"filePath": "src/employment/models.ts",
|
|
313
353
|
"packageName": "@happyvertical/smrt-human-resources",
|
|
314
354
|
"fields": {
|
|
315
355
|
"tenantId": {
|
|
316
356
|
"type": "text",
|
|
317
|
-
"required": true,
|
|
318
357
|
"_meta": {
|
|
319
|
-
"sqlType": "UUID",
|
|
320
358
|
"__tenancy": {
|
|
321
359
|
"isTenantIdField": true,
|
|
322
360
|
"autoFilter": true,
|
|
@@ -326,43 +364,68 @@
|
|
|
326
364
|
"mode": "required",
|
|
327
365
|
"field": "tenantId",
|
|
328
366
|
"allowSuperAdminBypass": false
|
|
329
|
-
}
|
|
330
|
-
|
|
367
|
+
},
|
|
368
|
+
"__statedOptions": [
|
|
369
|
+
"sqlType",
|
|
370
|
+
"requiredFor",
|
|
371
|
+
"__tenancy"
|
|
372
|
+
],
|
|
373
|
+
"sqlType": "UUID",
|
|
374
|
+
"requiredFor": "tenant-scope"
|
|
375
|
+
},
|
|
376
|
+
"required": true
|
|
331
377
|
},
|
|
332
378
|
"employmentId": {
|
|
333
379
|
"type": "foreignKey",
|
|
334
|
-
"required": false,
|
|
335
|
-
"related": "Employment",
|
|
336
|
-
"description": "The person this period of work belongs to.",
|
|
337
380
|
"_meta": {
|
|
381
|
+
"__statedOptions": [
|
|
382
|
+
"description",
|
|
383
|
+
"onDelete",
|
|
384
|
+
"related"
|
|
385
|
+
],
|
|
338
386
|
"description": "The person this period of work belongs to.",
|
|
339
387
|
"onDelete": "RESTRICT"
|
|
340
|
-
}
|
|
388
|
+
},
|
|
389
|
+
"required": false,
|
|
390
|
+
"related": "Employment",
|
|
391
|
+
"description": "The person this period of work belongs to."
|
|
341
392
|
},
|
|
342
393
|
"startedOn": {
|
|
343
394
|
"type": "text",
|
|
344
|
-
"required": false,
|
|
345
|
-
"description": "The first day of this period of work.",
|
|
346
395
|
"_meta": {
|
|
396
|
+
"__statedOptions": [
|
|
397
|
+
"description"
|
|
398
|
+
],
|
|
347
399
|
"description": "The first day of this period of work."
|
|
348
|
-
}
|
|
400
|
+
},
|
|
401
|
+
"required": false,
|
|
402
|
+
"description": "The first day of this period of work."
|
|
349
403
|
},
|
|
350
404
|
"endedOn": {
|
|
351
405
|
"type": "text",
|
|
352
|
-
"required": false,
|
|
353
|
-
"description": "The last day of this period of work. Empty while it continues.",
|
|
354
406
|
"_meta": {
|
|
407
|
+
"__statedOptions": [
|
|
408
|
+
"nullable",
|
|
409
|
+
"description",
|
|
410
|
+
"required"
|
|
411
|
+
],
|
|
412
|
+
"description": "The last day of this period of work. Empty while it continues.",
|
|
355
413
|
"nullable": true,
|
|
356
|
-
"
|
|
357
|
-
}
|
|
414
|
+
"required": false
|
|
415
|
+
},
|
|
416
|
+
"required": false,
|
|
417
|
+
"description": "The last day of this period of work. Empty while it continues."
|
|
358
418
|
},
|
|
359
419
|
"endReason": {
|
|
360
420
|
"type": "text",
|
|
361
|
-
"required": false,
|
|
362
|
-
"description": "Why the period of work ended.",
|
|
363
421
|
"_meta": {
|
|
422
|
+
"__statedOptions": [
|
|
423
|
+
"description"
|
|
424
|
+
],
|
|
364
425
|
"description": "Why the period of work ended."
|
|
365
|
-
}
|
|
426
|
+
},
|
|
427
|
+
"required": false,
|
|
428
|
+
"description": "Why the period of work ended."
|
|
366
429
|
}
|
|
367
430
|
},
|
|
368
431
|
"methods": {
|
|
@@ -535,14 +598,12 @@
|
|
|
535
598
|
"qualifiedName": "@happyvertical/smrt-human-resources:EmploymentChange",
|
|
536
599
|
"collection": "employmentchanges",
|
|
537
600
|
"description": "Append-only dated change to an employment, attributed to an actor.",
|
|
538
|
-
"filePath": "
|
|
601
|
+
"filePath": "src/employment/models.ts",
|
|
539
602
|
"packageName": "@happyvertical/smrt-human-resources",
|
|
540
603
|
"fields": {
|
|
541
604
|
"tenantId": {
|
|
542
605
|
"type": "text",
|
|
543
|
-
"required": true,
|
|
544
606
|
"_meta": {
|
|
545
|
-
"sqlType": "UUID",
|
|
546
607
|
"__tenancy": {
|
|
547
608
|
"isTenantIdField": true,
|
|
548
609
|
"autoFilter": true,
|
|
@@ -552,21 +613,37 @@
|
|
|
552
613
|
"mode": "required",
|
|
553
614
|
"field": "tenantId",
|
|
554
615
|
"allowSuperAdminBypass": false
|
|
555
|
-
}
|
|
556
|
-
|
|
616
|
+
},
|
|
617
|
+
"__statedOptions": [
|
|
618
|
+
"sqlType",
|
|
619
|
+
"requiredFor",
|
|
620
|
+
"__tenancy"
|
|
621
|
+
],
|
|
622
|
+
"sqlType": "UUID",
|
|
623
|
+
"requiredFor": "tenant-scope"
|
|
624
|
+
},
|
|
625
|
+
"required": true
|
|
557
626
|
},
|
|
558
627
|
"employmentId": {
|
|
559
628
|
"type": "foreignKey",
|
|
560
|
-
"required": false,
|
|
561
|
-
"related": "Employment",
|
|
562
629
|
"_meta": {
|
|
630
|
+
"__statedOptions": [
|
|
631
|
+
"onDelete",
|
|
632
|
+
"related"
|
|
633
|
+
],
|
|
563
634
|
"onDelete": "RESTRICT"
|
|
564
|
-
}
|
|
635
|
+
},
|
|
636
|
+
"required": false,
|
|
637
|
+
"related": "Employment"
|
|
565
638
|
},
|
|
566
639
|
"kind": {
|
|
567
640
|
"type": "text",
|
|
641
|
+
"_meta": {
|
|
642
|
+
"__statedOptions": [
|
|
643
|
+
"enum"
|
|
644
|
+
]
|
|
645
|
+
},
|
|
568
646
|
"required": false,
|
|
569
|
-
"_meta": {},
|
|
570
647
|
"enum": [
|
|
571
648
|
"hired",
|
|
572
649
|
"ended",
|
|
@@ -581,34 +658,53 @@
|
|
|
581
658
|
},
|
|
582
659
|
"effectiveOn": {
|
|
583
660
|
"type": "text",
|
|
584
|
-
"
|
|
585
|
-
|
|
661
|
+
"_meta": {
|
|
662
|
+
"__statedOptions": []
|
|
663
|
+
},
|
|
664
|
+
"required": false
|
|
586
665
|
},
|
|
587
666
|
"fromValue": {
|
|
588
667
|
"type": "text",
|
|
589
|
-
"required": false,
|
|
590
668
|
"_meta": {
|
|
591
|
-
"
|
|
592
|
-
|
|
669
|
+
"__statedOptions": [
|
|
670
|
+
"nullable",
|
|
671
|
+
"required"
|
|
672
|
+
],
|
|
673
|
+
"nullable": true,
|
|
674
|
+
"required": false
|
|
675
|
+
},
|
|
676
|
+
"required": false
|
|
593
677
|
},
|
|
594
678
|
"toValue": {
|
|
595
679
|
"type": "text",
|
|
596
|
-
"required": false,
|
|
597
680
|
"_meta": {
|
|
598
|
-
"
|
|
599
|
-
|
|
681
|
+
"__statedOptions": [
|
|
682
|
+
"nullable",
|
|
683
|
+
"required"
|
|
684
|
+
],
|
|
685
|
+
"nullable": true,
|
|
686
|
+
"required": false
|
|
687
|
+
},
|
|
688
|
+
"required": false
|
|
600
689
|
},
|
|
601
690
|
"note": {
|
|
602
691
|
"type": "text",
|
|
692
|
+
"_meta": {
|
|
693
|
+
"__statedOptions": []
|
|
694
|
+
},
|
|
603
695
|
"required": false
|
|
604
696
|
},
|
|
605
697
|
"actorProfileId": {
|
|
606
698
|
"type": "crossPackageRef",
|
|
607
|
-
"required": false,
|
|
608
|
-
"related": "@happyvertical/smrt-profiles:Profile",
|
|
609
699
|
"_meta": {
|
|
700
|
+
"__statedOptions": [
|
|
701
|
+
"onDelete",
|
|
702
|
+
"related"
|
|
703
|
+
],
|
|
610
704
|
"onDelete": "RESTRICT"
|
|
611
|
-
}
|
|
705
|
+
},
|
|
706
|
+
"required": false,
|
|
707
|
+
"related": "@happyvertical/smrt-profiles:Profile"
|
|
612
708
|
}
|
|
613
709
|
},
|
|
614
710
|
"methods": {
|
|
@@ -803,7 +899,7 @@
|
|
|
803
899
|
"qualifiedName": "@happyvertical/smrt-human-resources:EmploymentCollection",
|
|
804
900
|
"collection": "employments",
|
|
805
901
|
"description": "Scoped persistence collection; mutations must use EmploymentService.",
|
|
806
|
-
"filePath": "
|
|
902
|
+
"filePath": "src/employment/models.ts",
|
|
807
903
|
"packageName": "@happyvertical/smrt-human-resources",
|
|
808
904
|
"fields": {},
|
|
809
905
|
"methods": {},
|
|
@@ -970,7 +1066,7 @@
|
|
|
970
1066
|
"qualifiedName": "@happyvertical/smrt-human-resources:EmploymentTermCollection",
|
|
971
1067
|
"collection": "employmentterms",
|
|
972
1068
|
"description": "Scoped term collection; closed like its model.",
|
|
973
|
-
"filePath": "
|
|
1069
|
+
"filePath": "src/employment/models.ts",
|
|
974
1070
|
"packageName": "@happyvertical/smrt-human-resources",
|
|
975
1071
|
"fields": {},
|
|
976
1072
|
"methods": {},
|
|
@@ -1100,7 +1196,7 @@
|
|
|
1100
1196
|
"qualifiedName": "@happyvertical/smrt-human-resources:EmploymentChangeCollection",
|
|
1101
1197
|
"collection": "employmentchanges",
|
|
1102
1198
|
"description": "Scoped append-only change collection; closed like its model.",
|
|
1103
|
-
"filePath": "
|
|
1199
|
+
"filePath": "src/employment/models.ts",
|
|
1104
1200
|
"packageName": "@happyvertical/smrt-human-resources",
|
|
1105
1201
|
"fields": {},
|
|
1106
1202
|
"methods": {},
|
|
@@ -1252,14 +1348,12 @@
|
|
|
1252
1348
|
"qualifiedName": "@happyvertical/smrt-human-resources:Qualification",
|
|
1253
1349
|
"collection": "qualifications",
|
|
1254
1350
|
"description": "A qualification definition: a managed list per tenant. Other packages gate work by referencing its id (@happyvertical/smrt-human-resources:Qualification).",
|
|
1255
|
-
"filePath": "
|
|
1351
|
+
"filePath": "src/qualifications/models.ts",
|
|
1256
1352
|
"packageName": "@happyvertical/smrt-human-resources",
|
|
1257
1353
|
"fields": {
|
|
1258
1354
|
"tenantId": {
|
|
1259
1355
|
"type": "text",
|
|
1260
|
-
"required": true,
|
|
1261
1356
|
"_meta": {
|
|
1262
|
-
"sqlType": "UUID",
|
|
1263
1357
|
"__tenancy": {
|
|
1264
1358
|
"isTenantIdField": true,
|
|
1265
1359
|
"autoFilter": true,
|
|
@@ -1269,28 +1363,46 @@
|
|
|
1269
1363
|
"mode": "required",
|
|
1270
1364
|
"field": "tenantId",
|
|
1271
1365
|
"allowSuperAdminBypass": false
|
|
1272
|
-
}
|
|
1273
|
-
|
|
1366
|
+
},
|
|
1367
|
+
"__statedOptions": [
|
|
1368
|
+
"sqlType",
|
|
1369
|
+
"requiredFor",
|
|
1370
|
+
"__tenancy"
|
|
1371
|
+
],
|
|
1372
|
+
"sqlType": "UUID",
|
|
1373
|
+
"requiredFor": "tenant-scope"
|
|
1374
|
+
},
|
|
1375
|
+
"required": true
|
|
1274
1376
|
},
|
|
1275
1377
|
"key": {
|
|
1276
1378
|
"type": "text",
|
|
1379
|
+
"_meta": {
|
|
1380
|
+
"__statedOptions": []
|
|
1381
|
+
},
|
|
1277
1382
|
"required": false
|
|
1278
1383
|
},
|
|
1279
1384
|
"name": {
|
|
1280
1385
|
"type": "text",
|
|
1281
|
-
"required": false,
|
|
1282
|
-
"description": "What the qualification is called, such as First aid.",
|
|
1283
1386
|
"_meta": {
|
|
1387
|
+
"__statedOptions": [
|
|
1388
|
+
"description"
|
|
1389
|
+
],
|
|
1284
1390
|
"description": "What the qualification is called, such as First aid."
|
|
1285
|
-
}
|
|
1391
|
+
},
|
|
1392
|
+
"required": false,
|
|
1393
|
+
"description": "What the qualification is called, such as First aid."
|
|
1286
1394
|
},
|
|
1287
1395
|
"kind": {
|
|
1288
1396
|
"type": "text",
|
|
1289
|
-
"required": false,
|
|
1290
|
-
"description": "The sort of qualification, such as a certificate or a licence.",
|
|
1291
1397
|
"_meta": {
|
|
1398
|
+
"__statedOptions": [
|
|
1399
|
+
"description",
|
|
1400
|
+
"enum"
|
|
1401
|
+
],
|
|
1292
1402
|
"description": "The sort of qualification, such as a certificate or a licence."
|
|
1293
1403
|
},
|
|
1404
|
+
"required": false,
|
|
1405
|
+
"description": "The sort of qualification, such as a certificate or a licence.",
|
|
1294
1406
|
"enum": [
|
|
1295
1407
|
"ticket",
|
|
1296
1408
|
"certification",
|
|
@@ -1301,34 +1413,51 @@
|
|
|
1301
1413
|
},
|
|
1302
1414
|
"issuingBody": {
|
|
1303
1415
|
"type": "text",
|
|
1304
|
-
"required": false,
|
|
1305
|
-
"description": "Who gives it out.",
|
|
1306
1416
|
"_meta": {
|
|
1417
|
+
"__statedOptions": [
|
|
1418
|
+
"description"
|
|
1419
|
+
],
|
|
1307
1420
|
"description": "Who gives it out."
|
|
1308
|
-
}
|
|
1421
|
+
},
|
|
1422
|
+
"required": false,
|
|
1423
|
+
"description": "Who gives it out."
|
|
1309
1424
|
},
|
|
1310
1425
|
"expires": {
|
|
1311
1426
|
"type": "boolean",
|
|
1312
|
-
"required": true,
|
|
1313
|
-
"default": false,
|
|
1314
|
-
"description": "Whether it has to be renewed.",
|
|
1315
1427
|
"_meta": {
|
|
1428
|
+
"__statedOptions": [
|
|
1429
|
+
"description",
|
|
1430
|
+
"default"
|
|
1431
|
+
],
|
|
1316
1432
|
"description": "Whether it has to be renewed."
|
|
1317
|
-
}
|
|
1433
|
+
},
|
|
1434
|
+
"required": true,
|
|
1435
|
+
"default": false,
|
|
1436
|
+
"description": "Whether it has to be renewed."
|
|
1318
1437
|
},
|
|
1319
1438
|
"validityMonths": {
|
|
1320
1439
|
"type": "integer",
|
|
1321
|
-
"required": false,
|
|
1322
|
-
"description": "How many months it lasts once given.",
|
|
1323
1440
|
"_meta": {
|
|
1441
|
+
"__statedOptions": [
|
|
1442
|
+
"nullable",
|
|
1443
|
+
"description",
|
|
1444
|
+
"required"
|
|
1445
|
+
],
|
|
1446
|
+
"description": "How many months it lasts once given.",
|
|
1324
1447
|
"nullable": true,
|
|
1325
|
-
"
|
|
1326
|
-
}
|
|
1448
|
+
"required": false
|
|
1449
|
+
},
|
|
1450
|
+
"required": false,
|
|
1451
|
+
"description": "How many months it lasts once given."
|
|
1327
1452
|
},
|
|
1328
1453
|
"scope": {
|
|
1329
1454
|
"type": "text",
|
|
1455
|
+
"_meta": {
|
|
1456
|
+
"__statedOptions": [
|
|
1457
|
+
"enum"
|
|
1458
|
+
]
|
|
1459
|
+
},
|
|
1330
1460
|
"required": false,
|
|
1331
|
-
"_meta": {},
|
|
1332
1461
|
"enum": [
|
|
1333
1462
|
"person",
|
|
1334
1463
|
"employment"
|
|
@@ -1336,6 +1465,11 @@
|
|
|
1336
1465
|
},
|
|
1337
1466
|
"isActive": {
|
|
1338
1467
|
"type": "boolean",
|
|
1468
|
+
"_meta": {
|
|
1469
|
+
"__statedOptions": [
|
|
1470
|
+
"default"
|
|
1471
|
+
]
|
|
1472
|
+
},
|
|
1339
1473
|
"required": true,
|
|
1340
1474
|
"default": true
|
|
1341
1475
|
}
|
|
@@ -1519,14 +1653,12 @@
|
|
|
1519
1653
|
"qualifiedName": "@happyvertical/smrt-human-resources:HeldQualification",
|
|
1520
1654
|
"collection": "heldqualifications",
|
|
1521
1655
|
"description": "A person holds a qualification. employmentId is set when the definition's scope is employment; such a row is revoked when that employment ends.",
|
|
1522
|
-
"filePath": "
|
|
1656
|
+
"filePath": "src/qualifications/models.ts",
|
|
1523
1657
|
"packageName": "@happyvertical/smrt-human-resources",
|
|
1524
1658
|
"fields": {
|
|
1525
1659
|
"tenantId": {
|
|
1526
1660
|
"type": "text",
|
|
1527
|
-
"required": true,
|
|
1528
1661
|
"_meta": {
|
|
1529
|
-
"sqlType": "UUID",
|
|
1530
1662
|
"__tenancy": {
|
|
1531
1663
|
"isTenantIdField": true,
|
|
1532
1664
|
"autoFilter": true,
|
|
@@ -1536,70 +1668,111 @@
|
|
|
1536
1668
|
"mode": "required",
|
|
1537
1669
|
"field": "tenantId",
|
|
1538
1670
|
"allowSuperAdminBypass": false
|
|
1539
|
-
}
|
|
1540
|
-
|
|
1671
|
+
},
|
|
1672
|
+
"__statedOptions": [
|
|
1673
|
+
"sqlType",
|
|
1674
|
+
"requiredFor",
|
|
1675
|
+
"__tenancy"
|
|
1676
|
+
],
|
|
1677
|
+
"sqlType": "UUID",
|
|
1678
|
+
"requiredFor": "tenant-scope"
|
|
1679
|
+
},
|
|
1680
|
+
"required": true
|
|
1541
1681
|
},
|
|
1542
1682
|
"qualificationId": {
|
|
1543
1683
|
"type": "foreignKey",
|
|
1544
|
-
"required": false,
|
|
1545
|
-
"related": "Qualification",
|
|
1546
|
-
"description": "The qualification this person holds.",
|
|
1547
1684
|
"_meta": {
|
|
1685
|
+
"__statedOptions": [
|
|
1686
|
+
"description",
|
|
1687
|
+
"onDelete",
|
|
1688
|
+
"related"
|
|
1689
|
+
],
|
|
1548
1690
|
"description": "The qualification this person holds.",
|
|
1549
1691
|
"onDelete": "RESTRICT"
|
|
1550
|
-
}
|
|
1692
|
+
},
|
|
1693
|
+
"required": false,
|
|
1694
|
+
"related": "Qualification",
|
|
1695
|
+
"description": "The qualification this person holds."
|
|
1551
1696
|
},
|
|
1552
1697
|
"profileId": {
|
|
1553
1698
|
"type": "crossPackageRef",
|
|
1554
|
-
"required": false,
|
|
1555
|
-
"related": "@happyvertical/smrt-profiles:Profile",
|
|
1556
|
-
"description": "The person who holds it.",
|
|
1557
1699
|
"_meta": {
|
|
1700
|
+
"__statedOptions": [
|
|
1701
|
+
"description",
|
|
1702
|
+
"onDelete",
|
|
1703
|
+
"related"
|
|
1704
|
+
],
|
|
1558
1705
|
"description": "The person who holds it.",
|
|
1559
1706
|
"onDelete": "RESTRICT"
|
|
1560
|
-
}
|
|
1707
|
+
},
|
|
1708
|
+
"required": false,
|
|
1709
|
+
"related": "@happyvertical/smrt-profiles:Profile",
|
|
1710
|
+
"description": "The person who holds it."
|
|
1561
1711
|
},
|
|
1562
1712
|
"employmentId": {
|
|
1563
1713
|
"type": "foreignKey",
|
|
1564
|
-
"required": false,
|
|
1565
|
-
"related": "Employment",
|
|
1566
1714
|
"_meta": {
|
|
1715
|
+
"__statedOptions": [
|
|
1716
|
+
"nullable",
|
|
1717
|
+
"onDelete",
|
|
1718
|
+
"related",
|
|
1719
|
+
"required"
|
|
1720
|
+
],
|
|
1567
1721
|
"nullable": true,
|
|
1568
|
-
"onDelete": "RESTRICT"
|
|
1569
|
-
|
|
1722
|
+
"onDelete": "RESTRICT",
|
|
1723
|
+
"required": false
|
|
1724
|
+
},
|
|
1725
|
+
"required": false,
|
|
1726
|
+
"related": "Employment"
|
|
1570
1727
|
},
|
|
1571
1728
|
"issuedOn": {
|
|
1572
1729
|
"type": "text",
|
|
1573
|
-
"required": false,
|
|
1574
|
-
"description": "The day it was given.",
|
|
1575
1730
|
"_meta": {
|
|
1731
|
+
"__statedOptions": [
|
|
1732
|
+
"description"
|
|
1733
|
+
],
|
|
1576
1734
|
"description": "The day it was given."
|
|
1577
|
-
}
|
|
1735
|
+
},
|
|
1736
|
+
"required": false,
|
|
1737
|
+
"description": "The day it was given."
|
|
1578
1738
|
},
|
|
1579
1739
|
"expiresOn": {
|
|
1580
1740
|
"type": "text",
|
|
1581
|
-
"required": false,
|
|
1582
|
-
"description": "The day it runs out. Empty if it does not.",
|
|
1583
1741
|
"_meta": {
|
|
1742
|
+
"__statedOptions": [
|
|
1743
|
+
"nullable",
|
|
1744
|
+
"description",
|
|
1745
|
+
"required"
|
|
1746
|
+
],
|
|
1747
|
+
"description": "The day it runs out. Empty if it does not.",
|
|
1584
1748
|
"nullable": true,
|
|
1585
|
-
"
|
|
1586
|
-
}
|
|
1749
|
+
"required": false
|
|
1750
|
+
},
|
|
1751
|
+
"required": false,
|
|
1752
|
+
"description": "The day it runs out. Empty if it does not."
|
|
1587
1753
|
},
|
|
1588
1754
|
"certificateNumber": {
|
|
1589
1755
|
"type": "text",
|
|
1590
|
-
"required": false,
|
|
1591
|
-
"description": "The number printed on the certificate.",
|
|
1592
1756
|
"_meta": {
|
|
1757
|
+
"__statedOptions": [
|
|
1758
|
+
"description"
|
|
1759
|
+
],
|
|
1593
1760
|
"description": "The number printed on the certificate."
|
|
1594
|
-
}
|
|
1761
|
+
},
|
|
1762
|
+
"required": false,
|
|
1763
|
+
"description": "The number printed on the certificate."
|
|
1595
1764
|
},
|
|
1596
1765
|
"status": {
|
|
1597
1766
|
"type": "text",
|
|
1598
|
-
"required": false,
|
|
1599
|
-
"description": "Whether it is valid, expired, suspended or revoked.",
|
|
1600
1767
|
"_meta": {
|
|
1768
|
+
"__statedOptions": [
|
|
1769
|
+
"description",
|
|
1770
|
+
"enum"
|
|
1771
|
+
],
|
|
1601
1772
|
"description": "Whether it is valid, expired, suspended or revoked."
|
|
1602
1773
|
},
|
|
1774
|
+
"required": false,
|
|
1775
|
+
"description": "Whether it is valid, expired, suspended or revoked.",
|
|
1603
1776
|
"enum": [
|
|
1604
1777
|
"valid",
|
|
1605
1778
|
"expired",
|
|
@@ -1609,33 +1782,56 @@
|
|
|
1609
1782
|
},
|
|
1610
1783
|
"verifiedByProfileId": {
|
|
1611
1784
|
"type": "crossPackageRef",
|
|
1612
|
-
"required": false,
|
|
1613
|
-
"related": "@happyvertical/smrt-profiles:Profile",
|
|
1614
1785
|
"_meta": {
|
|
1786
|
+
"__statedOptions": [
|
|
1787
|
+
"nullable",
|
|
1788
|
+
"onDelete",
|
|
1789
|
+
"related",
|
|
1790
|
+
"required"
|
|
1791
|
+
],
|
|
1615
1792
|
"nullable": true,
|
|
1616
|
-
"onDelete": "RESTRICT"
|
|
1617
|
-
|
|
1793
|
+
"onDelete": "RESTRICT",
|
|
1794
|
+
"required": false
|
|
1795
|
+
},
|
|
1796
|
+
"required": false,
|
|
1797
|
+
"related": "@happyvertical/smrt-profiles:Profile"
|
|
1618
1798
|
},
|
|
1619
1799
|
"verifiedAt": {
|
|
1620
1800
|
"type": "datetime",
|
|
1801
|
+
"_meta": {
|
|
1802
|
+
"__statedOptions": []
|
|
1803
|
+
},
|
|
1621
1804
|
"required": false
|
|
1622
1805
|
},
|
|
1623
1806
|
"documentAssetId": {
|
|
1624
1807
|
"type": "crossPackageRef",
|
|
1625
|
-
"required": false,
|
|
1626
|
-
"related": "@happyvertical/smrt-assets:Asset",
|
|
1627
1808
|
"_meta": {
|
|
1628
|
-
"
|
|
1629
|
-
|
|
1809
|
+
"__statedOptions": [
|
|
1810
|
+
"nullable",
|
|
1811
|
+
"related",
|
|
1812
|
+
"required"
|
|
1813
|
+
],
|
|
1814
|
+
"nullable": true,
|
|
1815
|
+
"required": false
|
|
1816
|
+
},
|
|
1817
|
+
"required": false,
|
|
1818
|
+
"related": "@happyvertical/smrt-assets:Asset"
|
|
1630
1819
|
},
|
|
1631
1820
|
"renewalOfId": {
|
|
1632
1821
|
"type": "foreignKey",
|
|
1633
|
-
"required": false,
|
|
1634
|
-
"related": "HeldQualification",
|
|
1635
1822
|
"_meta": {
|
|
1823
|
+
"__statedOptions": [
|
|
1824
|
+
"nullable",
|
|
1825
|
+
"onDelete",
|
|
1826
|
+
"related",
|
|
1827
|
+
"required"
|
|
1828
|
+
],
|
|
1636
1829
|
"nullable": true,
|
|
1637
|
-
"onDelete": "RESTRICT"
|
|
1638
|
-
|
|
1830
|
+
"onDelete": "RESTRICT",
|
|
1831
|
+
"required": false
|
|
1832
|
+
},
|
|
1833
|
+
"required": false,
|
|
1834
|
+
"related": "HeldQualification"
|
|
1639
1835
|
}
|
|
1640
1836
|
},
|
|
1641
1837
|
"methods": {
|
|
@@ -1906,14 +2102,12 @@
|
|
|
1906
2102
|
"qualifiedName": "@happyvertical/smrt-human-resources:HeldQualificationChange",
|
|
1907
2103
|
"collection": "heldqualificationchanges",
|
|
1908
2104
|
"description": "Append-only dated change to a held qualification, attributed to an actor.",
|
|
1909
|
-
"filePath": "
|
|
2105
|
+
"filePath": "src/qualifications/models.ts",
|
|
1910
2106
|
"packageName": "@happyvertical/smrt-human-resources",
|
|
1911
2107
|
"fields": {
|
|
1912
2108
|
"tenantId": {
|
|
1913
2109
|
"type": "text",
|
|
1914
|
-
"required": true,
|
|
1915
2110
|
"_meta": {
|
|
1916
|
-
"sqlType": "UUID",
|
|
1917
2111
|
"__tenancy": {
|
|
1918
2112
|
"isTenantIdField": true,
|
|
1919
2113
|
"autoFilter": true,
|
|
@@ -1923,21 +2117,37 @@
|
|
|
1923
2117
|
"mode": "required",
|
|
1924
2118
|
"field": "tenantId",
|
|
1925
2119
|
"allowSuperAdminBypass": false
|
|
1926
|
-
}
|
|
1927
|
-
|
|
2120
|
+
},
|
|
2121
|
+
"__statedOptions": [
|
|
2122
|
+
"sqlType",
|
|
2123
|
+
"requiredFor",
|
|
2124
|
+
"__tenancy"
|
|
2125
|
+
],
|
|
2126
|
+
"sqlType": "UUID",
|
|
2127
|
+
"requiredFor": "tenant-scope"
|
|
2128
|
+
},
|
|
2129
|
+
"required": true
|
|
1928
2130
|
},
|
|
1929
2131
|
"heldQualificationId": {
|
|
1930
2132
|
"type": "foreignKey",
|
|
1931
|
-
"required": false,
|
|
1932
|
-
"related": "HeldQualification",
|
|
1933
2133
|
"_meta": {
|
|
2134
|
+
"__statedOptions": [
|
|
2135
|
+
"onDelete",
|
|
2136
|
+
"related"
|
|
2137
|
+
],
|
|
1934
2138
|
"onDelete": "RESTRICT"
|
|
1935
|
-
}
|
|
2139
|
+
},
|
|
2140
|
+
"required": false,
|
|
2141
|
+
"related": "HeldQualification"
|
|
1936
2142
|
},
|
|
1937
2143
|
"kind": {
|
|
1938
2144
|
"type": "text",
|
|
2145
|
+
"_meta": {
|
|
2146
|
+
"__statedOptions": [
|
|
2147
|
+
"enum"
|
|
2148
|
+
]
|
|
2149
|
+
},
|
|
1939
2150
|
"required": false,
|
|
1940
|
-
"_meta": {},
|
|
1941
2151
|
"enum": [
|
|
1942
2152
|
"granted",
|
|
1943
2153
|
"renewed",
|
|
@@ -1949,20 +2159,29 @@
|
|
|
1949
2159
|
},
|
|
1950
2160
|
"effectiveOn": {
|
|
1951
2161
|
"type": "text",
|
|
1952
|
-
"
|
|
1953
|
-
|
|
2162
|
+
"_meta": {
|
|
2163
|
+
"__statedOptions": []
|
|
2164
|
+
},
|
|
2165
|
+
"required": false
|
|
1954
2166
|
},
|
|
1955
2167
|
"reason": {
|
|
1956
2168
|
"type": "text",
|
|
2169
|
+
"_meta": {
|
|
2170
|
+
"__statedOptions": []
|
|
2171
|
+
},
|
|
1957
2172
|
"required": false
|
|
1958
2173
|
},
|
|
1959
2174
|
"actorProfileId": {
|
|
1960
2175
|
"type": "crossPackageRef",
|
|
1961
|
-
"required": false,
|
|
1962
|
-
"related": "@happyvertical/smrt-profiles:Profile",
|
|
1963
2176
|
"_meta": {
|
|
2177
|
+
"__statedOptions": [
|
|
2178
|
+
"onDelete",
|
|
2179
|
+
"related"
|
|
2180
|
+
],
|
|
1964
2181
|
"onDelete": "RESTRICT"
|
|
1965
|
-
}
|
|
2182
|
+
},
|
|
2183
|
+
"required": false,
|
|
2184
|
+
"related": "@happyvertical/smrt-profiles:Profile"
|
|
1966
2185
|
}
|
|
1967
2186
|
},
|
|
1968
2187
|
"methods": {
|
|
@@ -2147,7 +2366,7 @@
|
|
|
2147
2366
|
"qualifiedName": "@happyvertical/smrt-human-resources:QualificationCollection",
|
|
2148
2367
|
"collection": "qualifications",
|
|
2149
2368
|
"description": "Scoped definition collection; mutations must use QualificationService.",
|
|
2150
|
-
"filePath": "
|
|
2369
|
+
"filePath": "src/qualifications/models.ts",
|
|
2151
2370
|
"packageName": "@happyvertical/smrt-human-resources",
|
|
2152
2371
|
"fields": {},
|
|
2153
2372
|
"methods": {},
|
|
@@ -2285,7 +2504,7 @@
|
|
|
2285
2504
|
"qualifiedName": "@happyvertical/smrt-human-resources:HeldQualificationCollection",
|
|
2286
2505
|
"collection": "heldqualifications",
|
|
2287
2506
|
"description": "Scoped held-qualification collection; closed like its model.",
|
|
2288
|
-
"filePath": "
|
|
2507
|
+
"filePath": "src/qualifications/models.ts",
|
|
2289
2508
|
"packageName": "@happyvertical/smrt-human-resources",
|
|
2290
2509
|
"fields": {},
|
|
2291
2510
|
"methods": {},
|
|
@@ -2505,7 +2724,7 @@
|
|
|
2505
2724
|
"qualifiedName": "@happyvertical/smrt-human-resources:HeldQualificationChangeCollection",
|
|
2506
2725
|
"collection": "heldqualificationchanges",
|
|
2507
2726
|
"description": "Scoped append-only change collection; closed like its model.",
|
|
2508
|
-
"filePath": "
|
|
2727
|
+
"filePath": "src/qualifications/models.ts",
|
|
2509
2728
|
"packageName": "@happyvertical/smrt-human-resources",
|
|
2510
2729
|
"fields": {},
|
|
2511
2730
|
"methods": {},
|
|
@@ -2903,5 +3122,6 @@
|
|
|
2903
3122
|
"@happyvertical/smrt-tenancy"
|
|
2904
3123
|
]
|
|
2905
3124
|
},
|
|
3125
|
+
"schemaFingerprint": "c6a52a90a2cd39a6ef738d5644006d4cf6433fcbd182ca0bd6d55789c0292ab4",
|
|
2906
3126
|
"stampsConstructors": true
|
|
2907
3127
|
}
|