@adaptware/eagles-db 0.6.5 → 0.6.6
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/client/edge.js +3 -20
- package/client/index-browser.js +0 -17
- package/client/index.d.ts +255 -4261
- package/client/index.js +3 -20
- package/client/package.json +1 -1
- package/client/schema.prisma +12 -41
- package/client/wasm.js +3 -20
- package/package.json +1 -1
- package/prisma/schema/consent.prisma +1 -28
- package/prisma/schema/user.prisma +0 -2
package/client/package.json
CHANGED
package/client/schema.prisma
CHANGED
|
@@ -1330,37 +1330,27 @@ model ConsentDocument {
|
|
|
1330
1330
|
}
|
|
1331
1331
|
|
|
1332
1332
|
model ConsentDocumentVersion {
|
|
1333
|
-
id String
|
|
1333
|
+
id String @id @default(uuid())
|
|
1334
1334
|
document_id String
|
|
1335
|
-
document ConsentDocument
|
|
1335
|
+
document ConsentDocument @relation(fields: [document_id], references: [id], onDelete: Cascade)
|
|
1336
1336
|
version_number Int
|
|
1337
1337
|
content_hash String
|
|
1338
|
-
locale String
|
|
1338
|
+
locale String @default("en")
|
|
1339
1339
|
template_version_label String?
|
|
1340
1340
|
s3_bucket String?
|
|
1341
|
-
/// Legacy single key; prefer s3_archive_key + s3_active_key
|
|
1342
|
-
s3_key String?
|
|
1343
|
-
s3_region String?
|
|
1344
1341
|
/// Immutable snapshot path (audit binding)
|
|
1345
1342
|
s3_archive_key String?
|
|
1346
1343
|
/// Read-optimized current copy under active/
|
|
1347
1344
|
s3_active_key String?
|
|
1348
|
-
///
|
|
1345
|
+
/// Optional immutable archive row in shared Document catalog (org ingest)
|
|
1349
1346
|
s3_document_id String?
|
|
1350
|
-
s3_document Document?
|
|
1351
|
-
status ConsentCatalogVersionStatus
|
|
1347
|
+
s3_document Document? @relation(fields: [s3_document_id], references: [id], onDelete: SetNull)
|
|
1348
|
+
status ConsentCatalogVersionStatus @default(PUBLISHED)
|
|
1352
1349
|
published_at DateTime?
|
|
1353
|
-
|
|
1354
|
-
published_by User? @relation("ConsentVersionPublishedBy", fields: [published_by_id], references: [id], onDelete: SetNull)
|
|
1355
|
-
approval_notes String? @db.Text
|
|
1356
|
-
supersedes_version_id String?
|
|
1357
|
-
supersedes_version ConsentDocumentVersion? @relation("ConsentVersionSupersedes", fields: [supersedes_version_id], references: [id], onDelete: SetNull)
|
|
1358
|
-
superseded_by ConsentDocumentVersion[] @relation("ConsentVersionSupersedes")
|
|
1359
|
-
created_at DateTime @default(now())
|
|
1350
|
+
created_at DateTime @default(now())
|
|
1360
1351
|
checkboxes ConsentCheckboxDefinition[]
|
|
1361
1352
|
consent_records ConsentRecord[]
|
|
1362
1353
|
system_consent_epochs SystemConsentEpoch[]
|
|
1363
|
-
version_approvals ConsentDocumentVersionApproval[]
|
|
1364
1354
|
|
|
1365
1355
|
@@unique([document_id, version_number])
|
|
1366
1356
|
@@index([document_id, published_at(sort: Desc)])
|
|
@@ -1368,20 +1358,6 @@ model ConsentDocumentVersion {
|
|
|
1368
1358
|
@@schema("public")
|
|
1369
1359
|
}
|
|
1370
1360
|
|
|
1371
|
-
model ConsentDocumentVersionApproval {
|
|
1372
|
-
id String @id @default(uuid())
|
|
1373
|
-
document_version_id String
|
|
1374
|
-
document_version ConsentDocumentVersion @relation(fields: [document_version_id], references: [id], onDelete: Cascade)
|
|
1375
|
-
action String
|
|
1376
|
-
actor_user_id String?
|
|
1377
|
-
actor_user User? @relation("ConsentVersionApprovalActor", fields: [actor_user_id], references: [id], onDelete: SetNull)
|
|
1378
|
-
notes String? @db.Text
|
|
1379
|
-
created_at DateTime @default(now())
|
|
1380
|
-
|
|
1381
|
-
@@index([document_version_id, created_at(sort: Desc)])
|
|
1382
|
-
@@schema("public")
|
|
1383
|
-
}
|
|
1384
|
-
|
|
1385
1361
|
model ConsentCheckboxDefinition {
|
|
1386
1362
|
id String @id @default(uuid())
|
|
1387
1363
|
document_version_id String
|
|
@@ -1412,9 +1388,6 @@ model ConsentRecord {
|
|
|
1412
1388
|
ip_address String?
|
|
1413
1389
|
user_agent String?
|
|
1414
1390
|
decline_reason String?
|
|
1415
|
-
/// Copy of version s3_archive_key (or legacy s3_key) at grant time
|
|
1416
|
-
storage_snapshot_key String?
|
|
1417
|
-
content_hash_at_grant String?
|
|
1418
1391
|
created_at DateTime @default(now())
|
|
1419
1392
|
|
|
1420
1393
|
@@index([user_id, consent_type, created_at(sort: Desc)])
|
|
@@ -4865,13 +4838,11 @@ model User {
|
|
|
4865
4838
|
employee_number Int?
|
|
4866
4839
|
employee_code String? @unique
|
|
4867
4840
|
|
|
4868
|
-
department_members
|
|
4869
|
-
assigned_hiring_units
|
|
4870
|
-
consent_records
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
erasure_requests_as_subject DataErasureRequest[] @relation("ErasureSubjectUser")
|
|
4874
|
-
erasure_requests_requested DataErasureRequest[] @relation("ErasureRequestedByUser")
|
|
4841
|
+
department_members DepartmentMember[] @relation("DepartmentMemberships")
|
|
4842
|
+
assigned_hiring_units PurchasedHiringUnit[] @relation("AssignedHiringUnits")
|
|
4843
|
+
consent_records ConsentRecord[]
|
|
4844
|
+
erasure_requests_as_subject DataErasureRequest[] @relation("ErasureSubjectUser")
|
|
4845
|
+
erasure_requests_requested DataErasureRequest[] @relation("ErasureRequestedByUser")
|
|
4875
4846
|
|
|
4876
4847
|
@@index([role_id])
|
|
4877
4848
|
@@index([permission_id])
|