@happyvertical/smrt-human-resources 0.60.9 → 0.60.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-human-resources",
5
- "packageVersion": "0.60.9",
5
+ "packageVersion": "0.60.11",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-human-resources:Employment": {
8
8
  "name": "employment",
@@ -163,8 +163,14 @@
163
163
  "validationRules": [],
164
164
  "schema": {
165
165
  "tableName": "employments",
166
- "ddl": "CREATE TABLE IF NOT EXISTS \"employments\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"profile_id\" UUID,\n \"user_id\" UUID,\n \"employer_profile_id\" UUID,\n \"employee_number\" TEXT,\n \"worker_type\" TEXT,\n \"position\" TEXT,\n \"status\" TEXT\n);",
166
+ "ddl": "CREATE TABLE IF NOT EXISTS \"employments\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"profile_id\" UUID,\n \"user_id\" UUID,\n \"employer_profile_id\" UUID,\n \"employee_number\" TEXT,\n \"worker_type\" TEXT,\n \"position\" TEXT,\n \"status\" TEXT\n);",
167
167
  "columns": {
168
+ "_sync_origin_device_id": {
169
+ "type": "TEXT"
170
+ },
171
+ "_sync_revision": {
172
+ "type": "INTEGER"
173
+ },
168
174
  "id": {
169
175
  "type": "UUID",
170
176
  "primaryKey": true,
@@ -293,7 +299,7 @@
293
299
  ]
294
300
  }
295
301
  ],
296
- "version": "ff7ef7a8"
302
+ "version": "c2b9fa3b"
297
303
  },
298
304
  "importPath": "@happyvertical/smrt-human-resources"
299
305
  },
@@ -420,8 +426,14 @@
420
426
  "validationRules": [],
421
427
  "schema": {
422
428
  "tableName": "employment_terms",
423
- "ddl": "CREATE TABLE IF NOT EXISTS \"employment_terms\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"employment_id\" UUID,\n \"started_on\" TEXT,\n \"ended_on\" TEXT,\n \"end_reason\" TEXT\n);",
429
+ "ddl": "CREATE TABLE IF NOT EXISTS \"employment_terms\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"employment_id\" UUID,\n \"started_on\" TEXT,\n \"ended_on\" TEXT,\n \"end_reason\" TEXT\n);",
424
430
  "columns": {
431
+ "_sync_origin_device_id": {
432
+ "type": "TEXT"
433
+ },
434
+ "_sync_revision": {
435
+ "type": "INTEGER"
436
+ },
425
437
  "id": {
426
438
  "type": "UUID",
427
439
  "primaryKey": true,
@@ -513,7 +525,7 @@
513
525
  ]
514
526
  }
515
527
  ],
516
- "version": "165d209b"
528
+ "version": "3b815158"
517
529
  },
518
530
  "importPath": "@happyvertical/smrt-human-resources"
519
531
  },
@@ -660,8 +672,14 @@
660
672
  "validationRules": [],
661
673
  "schema": {
662
674
  "tableName": "employment_changes",
663
- "ddl": "CREATE TABLE IF NOT EXISTS \"employment_changes\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"employment_id\" UUID,\n \"kind\" TEXT,\n \"effective_on\" TEXT,\n \"from_value\" TEXT,\n \"to_value\" TEXT,\n \"note\" TEXT,\n \"actor_profile_id\" UUID\n);",
675
+ "ddl": "CREATE TABLE IF NOT EXISTS \"employment_changes\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"employment_id\" UUID,\n \"kind\" TEXT,\n \"effective_on\" TEXT,\n \"from_value\" TEXT,\n \"to_value\" TEXT,\n \"note\" TEXT,\n \"actor_profile_id\" UUID\n);",
664
676
  "columns": {
677
+ "_sync_origin_device_id": {
678
+ "type": "TEXT"
679
+ },
680
+ "_sync_revision": {
681
+ "type": "INTEGER"
682
+ },
665
683
  "id": {
666
684
  "type": "UUID",
667
685
  "primaryKey": true,
@@ -775,7 +793,7 @@
775
793
  ]
776
794
  }
777
795
  ],
778
- "version": "5d93422f"
796
+ "version": "aea78b9f"
779
797
  },
780
798
  "importPath": "@happyvertical/smrt-human-resources"
781
799
  },
@@ -806,8 +824,14 @@
806
824
  "collectionOf": "@happyvertical/smrt-human-resources:Employment",
807
825
  "schema": {
808
826
  "tableName": "employments",
809
- "ddl": "CREATE TABLE IF NOT EXISTS \"employments\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"profile_id\" UUID,\n \"user_id\" UUID,\n \"employer_profile_id\" UUID,\n \"employee_number\" TEXT,\n \"worker_type\" TEXT,\n \"position\" TEXT,\n \"status\" TEXT\n);",
827
+ "ddl": "CREATE TABLE IF NOT EXISTS \"employments\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"profile_id\" UUID,\n \"user_id\" UUID,\n \"employer_profile_id\" UUID,\n \"employee_number\" TEXT,\n \"worker_type\" TEXT,\n \"position\" TEXT,\n \"status\" TEXT\n);",
810
828
  "columns": {
829
+ "_sync_origin_device_id": {
830
+ "type": "TEXT"
831
+ },
832
+ "_sync_revision": {
833
+ "type": "INTEGER"
834
+ },
811
835
  "id": {
812
836
  "type": "UUID",
813
837
  "primaryKey": true,
@@ -936,7 +960,7 @@
936
960
  ]
937
961
  }
938
962
  ],
939
- "version": "ff7ef7a8"
963
+ "version": "c2b9fa3b"
940
964
  },
941
965
  "importPath": "@happyvertical/smrt-human-resources"
942
966
  },
@@ -967,8 +991,14 @@
967
991
  "collectionOf": "@happyvertical/smrt-human-resources:EmploymentTerm",
968
992
  "schema": {
969
993
  "tableName": "employment_terms",
970
- "ddl": "CREATE TABLE IF NOT EXISTS \"employment_terms\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"employment_id\" UUID,\n \"started_on\" TEXT,\n \"ended_on\" TEXT,\n \"end_reason\" TEXT\n);",
994
+ "ddl": "CREATE TABLE IF NOT EXISTS \"employment_terms\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"employment_id\" UUID,\n \"started_on\" TEXT,\n \"ended_on\" TEXT,\n \"end_reason\" TEXT\n);",
971
995
  "columns": {
996
+ "_sync_origin_device_id": {
997
+ "type": "TEXT"
998
+ },
999
+ "_sync_revision": {
1000
+ "type": "INTEGER"
1001
+ },
972
1002
  "id": {
973
1003
  "type": "UUID",
974
1004
  "primaryKey": true,
@@ -1060,7 +1090,7 @@
1060
1090
  ]
1061
1091
  }
1062
1092
  ],
1063
- "version": "165d209b"
1093
+ "version": "3b815158"
1064
1094
  },
1065
1095
  "importPath": "@happyvertical/smrt-human-resources"
1066
1096
  },
@@ -1091,8 +1121,14 @@
1091
1121
  "collectionOf": "@happyvertical/smrt-human-resources:EmploymentChange",
1092
1122
  "schema": {
1093
1123
  "tableName": "employment_changes",
1094
- "ddl": "CREATE TABLE IF NOT EXISTS \"employment_changes\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"employment_id\" UUID,\n \"kind\" TEXT,\n \"effective_on\" TEXT,\n \"from_value\" TEXT,\n \"to_value\" TEXT,\n \"note\" TEXT,\n \"actor_profile_id\" UUID\n);",
1124
+ "ddl": "CREATE TABLE IF NOT EXISTS \"employment_changes\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"employment_id\" UUID,\n \"kind\" TEXT,\n \"effective_on\" TEXT,\n \"from_value\" TEXT,\n \"to_value\" TEXT,\n \"note\" TEXT,\n \"actor_profile_id\" UUID\n);",
1095
1125
  "columns": {
1126
+ "_sync_origin_device_id": {
1127
+ "type": "TEXT"
1128
+ },
1129
+ "_sync_revision": {
1130
+ "type": "INTEGER"
1131
+ },
1096
1132
  "id": {
1097
1133
  "type": "UUID",
1098
1134
  "primaryKey": true,
@@ -1206,7 +1242,7 @@
1206
1242
  ]
1207
1243
  }
1208
1244
  ],
1209
- "version": "5d93422f"
1245
+ "version": "aea78b9f"
1210
1246
  },
1211
1247
  "importPath": "@happyvertical/smrt-human-resources"
1212
1248
  },
@@ -1366,8 +1402,14 @@
1366
1402
  ],
1367
1403
  "schema": {
1368
1404
  "tableName": "qualifications",
1369
- "ddl": "CREATE TABLE IF NOT EXISTS \"qualifications\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"key\" TEXT,\n \"name\" TEXT,\n \"kind\" TEXT,\n \"issuing_body\" TEXT,\n \"expires\" BOOLEAN NOT NULL DEFAULT FALSE,\n \"validity_months\" INTEGER,\n \"scope\" TEXT,\n \"is_active\" BOOLEAN NOT NULL DEFAULT TRUE\n);",
1405
+ "ddl": "CREATE TABLE IF NOT EXISTS \"qualifications\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"key\" TEXT,\n \"name\" TEXT,\n \"kind\" TEXT,\n \"issuing_body\" TEXT,\n \"expires\" BOOLEAN NOT NULL DEFAULT FALSE,\n \"validity_months\" INTEGER,\n \"scope\" TEXT,\n \"is_active\" BOOLEAN NOT NULL DEFAULT TRUE\n);",
1370
1406
  "columns": {
1407
+ "_sync_origin_device_id": {
1408
+ "type": "TEXT"
1409
+ },
1410
+ "_sync_revision": {
1411
+ "type": "INTEGER"
1412
+ },
1371
1413
  "id": {
1372
1414
  "type": "UUID",
1373
1415
  "primaryKey": true,
@@ -1467,7 +1509,7 @@
1467
1509
  ]
1468
1510
  }
1469
1511
  ],
1470
- "version": "c9fa3721"
1512
+ "version": "4a6a240c"
1471
1513
  },
1472
1514
  "importPath": "@happyvertical/smrt-human-resources"
1473
1515
  },
@@ -1665,8 +1707,14 @@
1665
1707
  "validationRules": [],
1666
1708
  "schema": {
1667
1709
  "tableName": "held_qualifications",
1668
- "ddl": "CREATE TABLE IF NOT EXISTS \"held_qualifications\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"qualification_id\" UUID,\n \"profile_id\" UUID,\n \"employment_id\" UUID,\n \"issued_on\" TEXT,\n \"expires_on\" TEXT,\n \"certificate_number\" TEXT,\n \"status\" TEXT,\n \"verified_by_profile_id\" UUID,\n \"verified_at\" TIMESTAMP,\n \"document_asset_id\" UUID,\n \"renewal_of_id\" UUID\n);",
1710
+ "ddl": "CREATE TABLE IF NOT EXISTS \"held_qualifications\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"qualification_id\" UUID,\n \"profile_id\" UUID,\n \"employment_id\" UUID,\n \"issued_on\" TEXT,\n \"expires_on\" TEXT,\n \"certificate_number\" TEXT,\n \"status\" TEXT,\n \"verified_by_profile_id\" UUID,\n \"verified_at\" TIMESTAMP,\n \"document_asset_id\" UUID,\n \"renewal_of_id\" UUID\n);",
1669
1711
  "columns": {
1712
+ "_sync_origin_device_id": {
1713
+ "type": "TEXT"
1714
+ },
1715
+ "_sync_revision": {
1716
+ "type": "INTEGER"
1717
+ },
1670
1718
  "id": {
1671
1719
  "type": "UUID",
1672
1720
  "primaryKey": true,
@@ -1848,7 +1896,7 @@
1848
1896
  ]
1849
1897
  }
1850
1898
  ],
1851
- "version": "fafbe37f"
1899
+ "version": "3c05b36f"
1852
1900
  },
1853
1901
  "importPath": "@happyvertical/smrt-human-resources"
1854
1902
  },
@@ -1978,8 +2026,14 @@
1978
2026
  "validationRules": [],
1979
2027
  "schema": {
1980
2028
  "tableName": "held_qualification_changes",
1981
- "ddl": "CREATE TABLE IF NOT EXISTS \"held_qualification_changes\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"held_qualification_id\" UUID,\n \"kind\" TEXT,\n \"effective_on\" TEXT,\n \"reason\" TEXT,\n \"actor_profile_id\" UUID\n);",
2029
+ "ddl": "CREATE TABLE IF NOT EXISTS \"held_qualification_changes\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"held_qualification_id\" UUID,\n \"kind\" TEXT,\n \"effective_on\" TEXT,\n \"reason\" TEXT,\n \"actor_profile_id\" UUID\n);",
1982
2030
  "columns": {
2031
+ "_sync_origin_device_id": {
2032
+ "type": "TEXT"
2033
+ },
2034
+ "_sync_revision": {
2035
+ "type": "INTEGER"
2036
+ },
1983
2037
  "id": {
1984
2038
  "type": "UUID",
1985
2039
  "primaryKey": true,
@@ -2083,7 +2137,7 @@
2083
2137
  ]
2084
2138
  }
2085
2139
  ],
2086
- "version": "ed9ed5e1"
2140
+ "version": "f0efbd02"
2087
2141
  },
2088
2142
  "importPath": "@happyvertical/smrt-human-resources"
2089
2143
  },
@@ -2114,8 +2168,14 @@
2114
2168
  "collectionOf": "@happyvertical/smrt-human-resources:Qualification",
2115
2169
  "schema": {
2116
2170
  "tableName": "qualifications",
2117
- "ddl": "CREATE TABLE IF NOT EXISTS \"qualifications\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"key\" TEXT,\n \"name\" TEXT,\n \"kind\" TEXT,\n \"issuing_body\" TEXT,\n \"expires\" BOOLEAN NOT NULL DEFAULT FALSE,\n \"validity_months\" INTEGER,\n \"scope\" TEXT,\n \"is_active\" BOOLEAN NOT NULL DEFAULT TRUE\n);",
2171
+ "ddl": "CREATE TABLE IF NOT EXISTS \"qualifications\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"key\" TEXT,\n \"name\" TEXT,\n \"kind\" TEXT,\n \"issuing_body\" TEXT,\n \"expires\" BOOLEAN NOT NULL DEFAULT FALSE,\n \"validity_months\" INTEGER,\n \"scope\" TEXT,\n \"is_active\" BOOLEAN NOT NULL DEFAULT TRUE\n);",
2118
2172
  "columns": {
2173
+ "_sync_origin_device_id": {
2174
+ "type": "TEXT"
2175
+ },
2176
+ "_sync_revision": {
2177
+ "type": "INTEGER"
2178
+ },
2119
2179
  "id": {
2120
2180
  "type": "UUID",
2121
2181
  "primaryKey": true,
@@ -2215,7 +2275,7 @@
2215
2275
  ]
2216
2276
  }
2217
2277
  ],
2218
- "version": "c9fa3721"
2278
+ "version": "4a6a240c"
2219
2279
  },
2220
2280
  "importPath": "@happyvertical/smrt-human-resources"
2221
2281
  },
@@ -2246,8 +2306,14 @@
2246
2306
  "collectionOf": "@happyvertical/smrt-human-resources:HeldQualification",
2247
2307
  "schema": {
2248
2308
  "tableName": "held_qualifications",
2249
- "ddl": "CREATE TABLE IF NOT EXISTS \"held_qualifications\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"qualification_id\" UUID,\n \"profile_id\" UUID,\n \"employment_id\" UUID,\n \"issued_on\" TEXT,\n \"expires_on\" TEXT,\n \"certificate_number\" TEXT,\n \"status\" TEXT,\n \"verified_by_profile_id\" UUID,\n \"verified_at\" TIMESTAMP,\n \"document_asset_id\" UUID,\n \"renewal_of_id\" UUID\n);",
2309
+ "ddl": "CREATE TABLE IF NOT EXISTS \"held_qualifications\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"qualification_id\" UUID,\n \"profile_id\" UUID,\n \"employment_id\" UUID,\n \"issued_on\" TEXT,\n \"expires_on\" TEXT,\n \"certificate_number\" TEXT,\n \"status\" TEXT,\n \"verified_by_profile_id\" UUID,\n \"verified_at\" TIMESTAMP,\n \"document_asset_id\" UUID,\n \"renewal_of_id\" UUID\n);",
2250
2310
  "columns": {
2311
+ "_sync_origin_device_id": {
2312
+ "type": "TEXT"
2313
+ },
2314
+ "_sync_revision": {
2315
+ "type": "INTEGER"
2316
+ },
2251
2317
  "id": {
2252
2318
  "type": "UUID",
2253
2319
  "primaryKey": true,
@@ -2429,7 +2495,7 @@
2429
2495
  ]
2430
2496
  }
2431
2497
  ],
2432
- "version": "fafbe37f"
2498
+ "version": "3c05b36f"
2433
2499
  },
2434
2500
  "importPath": "@happyvertical/smrt-human-resources"
2435
2501
  },
@@ -2460,8 +2526,14 @@
2460
2526
  "collectionOf": "@happyvertical/smrt-human-resources:HeldQualificationChange",
2461
2527
  "schema": {
2462
2528
  "tableName": "held_qualification_changes",
2463
- "ddl": "CREATE TABLE IF NOT EXISTS \"held_qualification_changes\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"held_qualification_id\" UUID,\n \"kind\" TEXT,\n \"effective_on\" TEXT,\n \"reason\" TEXT,\n \"actor_profile_id\" UUID\n);",
2529
+ "ddl": "CREATE TABLE IF NOT EXISTS \"held_qualification_changes\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"held_qualification_id\" UUID,\n \"kind\" TEXT,\n \"effective_on\" TEXT,\n \"reason\" TEXT,\n \"actor_profile_id\" UUID\n);",
2464
2530
  "columns": {
2531
+ "_sync_origin_device_id": {
2532
+ "type": "TEXT"
2533
+ },
2534
+ "_sync_revision": {
2535
+ "type": "INTEGER"
2536
+ },
2465
2537
  "id": {
2466
2538
  "type": "UUID",
2467
2539
  "primaryKey": true,
@@ -2565,7 +2637,7 @@
2565
2637
  ]
2566
2638
  }
2567
2639
  ],
2568
- "version": "ed9ed5e1"
2640
+ "version": "f0efbd02"
2569
2641
  },
2570
2642
  "importPath": "@happyvertical/smrt-human-resources"
2571
2643
  }
@@ -3,12 +3,12 @@
3
3
  "sensitiveFieldsExcluded": true,
4
4
  "generatedAt": "1970-01-01T00:00:00.000Z",
5
5
  "packageName": "@happyvertical/smrt-human-resources",
6
- "packageVersion": "0.60.9",
6
+ "packageVersion": "0.60.11",
7
7
  "sourceManifestPath": "dist/manifest.json",
8
8
  "agentDocPath": "AGENTS.md",
9
9
  "sourceHashes": {
10
- "manifest": "24b8c2e7a143bc7242c670ced6c077b808703270c8f33cdf8b482f831619b260",
11
- "packageJson": "5994d69512a4a5cc4e7bcc43c0a38e1a1f9eed6deb28063e0130901d87ff8f08",
10
+ "manifest": "84e9f474c288d6efb9573ebbe93a61b92c56a61cb3f78466e754964482bace45",
11
+ "packageJson": "4dcfae608b9d83a21c5fb90d12bba0b6e6712d8d3aa573aa950aaa5896c403d2",
12
12
  "agents": "39e33413cdd174e5fd877f57fd119a4246f3f8795095e356d3df46e42a9b6345"
13
13
  },
14
14
  "exports": [
@@ -0,0 +1,68 @@
1
+ ---
2
+ type: "Component"
3
+ title: "@happyvertical/smrt-human-resources"
4
+ description: "HR records for the SMRT framework: who works for an organization, as what, and with what standing — employment with dated terms, and qualifications with expiry"
5
+ status: "stable"
6
+ generated:
7
+ by: "smrt/scripts/generate-knowledge-okf.ts"
8
+ at: "2026-11-05T15:48:19Z"
9
+ audience: "internal"
10
+ evidence_level: "source-inspected"
11
+ source_revision: "sha256:695d78a348ba46d4a35f9daf8cf93216252e6f8b12946b539a60b0e5e7bba1f6"
12
+ sources:
13
+ - id: "manifest"
14
+ resource: "https://github.com/happyvertical/smrt/blob/main/packages/human-resources/package.json"
15
+ title: "@happyvertical/smrt-human-resources package manifest"
16
+ - id: "agents"
17
+ resource: "https://github.com/happyvertical/smrt/blob/main/packages/human-resources/AGENTS.md"
18
+ title: "@happyvertical/smrt-human-resources packages/human-resources/AGENTS.md"
19
+ ---
20
+
21
+ # @happyvertical/smrt-human-resources
22
+
23
+ ## Package
24
+
25
+ - Directory: `packages/human-resources`
26
+ - Private: no
27
+ - Object source: `domain-artifact`
28
+ - Evidence level: `source-inspected`
29
+
30
+ ## Documentation
31
+
32
+ - `packages/human-resources/AGENTS.md`
33
+
34
+ ## Framework dependencies
35
+
36
+ - [smrt-core](/components/smrt-core.md)
37
+ - [smrt-tenancy](/components/smrt-tenancy.md)
38
+ - [smrt-types](/components/smrt-types.md)
39
+ - [smrt-ui](/components/smrt-ui.md)
40
+ - [smrt-vitest](/components/smrt-vitest.md)
41
+
42
+ ## SDK dependencies
43
+
44
+ - `@happyvertical/logger`
45
+ - `@happyvertical/sql`
46
+
47
+ ## Exports
48
+
49
+ - `.`
50
+ - `./manifest`
51
+ - `./manifest.json`
52
+ - `./svelte`
53
+ - `./ui`
54
+
55
+ ## Models
56
+
57
+ - `Employment` (collection `employments`, extends `SmrtObject`)
58
+ - `EmploymentChange` (collection `employmentchanges`, extends `SmrtObject`)
59
+ - `EmploymentChangeCollection` (collection `employmentchanges`, extends `SmrtCollection`)
60
+ - `EmploymentCollection` (collection `employments`, extends `SmrtCollection`)
61
+ - `EmploymentTerm` (collection `employmentterms`, extends `SmrtObject`)
62
+ - `EmploymentTermCollection` (collection `employmentterms`, extends `SmrtCollection`)
63
+ - `HeldQualification` (collection `heldqualifications`, extends `SmrtObject`)
64
+ - `HeldQualificationChange` (collection `heldqualificationchanges`, extends `SmrtObject`)
65
+ - `HeldQualificationChangeCollection` (collection `heldqualificationchanges`, extends `SmrtCollection`)
66
+ - `HeldQualificationCollection` (collection `heldqualifications`, extends `SmrtCollection`)
67
+ - `Qualification` (collection `qualifications`, extends `SmrtObject`)
68
+ - `QualificationCollection` (collection `qualifications`, extends `SmrtCollection`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-human-resources",
3
- "version": "0.60.9",
3
+ "version": "0.60.11",
4
4
  "smrtJsdoc": "strict",
5
5
  "description": "HR records for the SMRT framework: who works for an organization, as what, and with what standing — employment with dated terms, and qualifications with expiry",
6
6
  "type": "module",
@@ -30,12 +30,12 @@
30
30
  "./manifest.json": "./dist/manifest.json"
31
31
  },
32
32
  "dependencies": {
33
- "@happyvertical/logger": "^0.111.3",
34
- "@happyvertical/smrt-core": "0.60.9",
35
- "@happyvertical/smrt-tenancy": "0.60.9",
36
- "@happyvertical/smrt-types": "0.60.9",
37
- "@happyvertical/smrt-ui": "0.60.9",
38
- "@happyvertical/sql": "^0.111.3"
33
+ "@happyvertical/logger": "^0.111.5",
34
+ "@happyvertical/smrt-core": "0.60.11",
35
+ "@happyvertical/smrt-tenancy": "0.60.11",
36
+ "@happyvertical/smrt-types": "0.60.11",
37
+ "@happyvertical/smrt-ui": "0.60.11",
38
+ "@happyvertical/sql": "^0.111.5"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "svelte": "^5.57.0"
@@ -46,7 +46,7 @@
46
46
  }
47
47
  },
48
48
  "devDependencies": {
49
- "@happyvertical/smrt-vitest": "0.60.9",
49
+ "@happyvertical/smrt-vitest": "0.60.11",
50
50
  "@sveltejs/package": "^2.5.8",
51
51
  "@sveltejs/vite-plugin-svelte": "^7.3.0",
52
52
  "@types/node": "24.13.6",