@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/package.json
CHANGED
|
@@ -88,29 +88,19 @@ model ConsentDocumentVersion {
|
|
|
88
88
|
locale String @default("en")
|
|
89
89
|
template_version_label String?
|
|
90
90
|
s3_bucket String?
|
|
91
|
-
/// Legacy single key; prefer s3_archive_key + s3_active_key
|
|
92
|
-
s3_key String?
|
|
93
|
-
s3_region String?
|
|
94
91
|
/// Immutable snapshot path (audit binding)
|
|
95
92
|
s3_archive_key String?
|
|
96
93
|
/// Read-optimized current copy under active/
|
|
97
94
|
s3_active_key String?
|
|
98
|
-
///
|
|
95
|
+
/// Optional immutable archive row in shared Document catalog (org ingest)
|
|
99
96
|
s3_document_id String?
|
|
100
97
|
s3_document Document? @relation(fields: [s3_document_id], references: [id], onDelete: SetNull)
|
|
101
98
|
status ConsentCatalogVersionStatus @default(PUBLISHED)
|
|
102
99
|
published_at DateTime?
|
|
103
|
-
published_by_id String?
|
|
104
|
-
published_by User? @relation("ConsentVersionPublishedBy", fields: [published_by_id], references: [id], onDelete: SetNull)
|
|
105
|
-
approval_notes String? @db.Text
|
|
106
|
-
supersedes_version_id String?
|
|
107
|
-
supersedes_version ConsentDocumentVersion? @relation("ConsentVersionSupersedes", fields: [supersedes_version_id], references: [id], onDelete: SetNull)
|
|
108
|
-
superseded_by ConsentDocumentVersion[] @relation("ConsentVersionSupersedes")
|
|
109
100
|
created_at DateTime @default(now())
|
|
110
101
|
checkboxes ConsentCheckboxDefinition[]
|
|
111
102
|
consent_records ConsentRecord[]
|
|
112
103
|
system_consent_epochs SystemConsentEpoch[]
|
|
113
|
-
version_approvals ConsentDocumentVersionApproval[]
|
|
114
104
|
|
|
115
105
|
@@unique([document_id, version_number])
|
|
116
106
|
@@index([document_id, published_at(sort: Desc)])
|
|
@@ -118,20 +108,6 @@ model ConsentDocumentVersion {
|
|
|
118
108
|
@@schema("public")
|
|
119
109
|
}
|
|
120
110
|
|
|
121
|
-
model ConsentDocumentVersionApproval {
|
|
122
|
-
id String @id @default(uuid())
|
|
123
|
-
document_version_id String
|
|
124
|
-
document_version ConsentDocumentVersion @relation(fields: [document_version_id], references: [id], onDelete: Cascade)
|
|
125
|
-
action String
|
|
126
|
-
actor_user_id String?
|
|
127
|
-
actor_user User? @relation("ConsentVersionApprovalActor", fields: [actor_user_id], references: [id], onDelete: SetNull)
|
|
128
|
-
notes String? @db.Text
|
|
129
|
-
created_at DateTime @default(now())
|
|
130
|
-
|
|
131
|
-
@@index([document_version_id, created_at(sort: Desc)])
|
|
132
|
-
@@schema("public")
|
|
133
|
-
}
|
|
134
|
-
|
|
135
111
|
model ConsentCheckboxDefinition {
|
|
136
112
|
id String @id @default(uuid())
|
|
137
113
|
document_version_id String
|
|
@@ -162,9 +138,6 @@ model ConsentRecord {
|
|
|
162
138
|
ip_address String?
|
|
163
139
|
user_agent String?
|
|
164
140
|
decline_reason String?
|
|
165
|
-
/// Copy of version s3_archive_key (or legacy s3_key) at grant time
|
|
166
|
-
storage_snapshot_key String?
|
|
167
|
-
content_hash_at_grant String?
|
|
168
141
|
created_at DateTime @default(now())
|
|
169
142
|
|
|
170
143
|
@@index([user_id, consent_type, created_at(sort: Desc)])
|
|
@@ -104,8 +104,6 @@ model User {
|
|
|
104
104
|
department_members DepartmentMember[] @relation("DepartmentMemberships")
|
|
105
105
|
assigned_hiring_units PurchasedHiringUnit[] @relation("AssignedHiringUnits")
|
|
106
106
|
consent_records ConsentRecord[]
|
|
107
|
-
consent_versions_published ConsentDocumentVersion[] @relation("ConsentVersionPublishedBy")
|
|
108
|
-
consent_version_approval_actions ConsentDocumentVersionApproval[] @relation("ConsentVersionApprovalActor")
|
|
109
107
|
erasure_requests_as_subject DataErasureRequest[] @relation("ErasureSubjectUser")
|
|
110
108
|
erasure_requests_requested DataErasureRequest[] @relation("ErasureRequestedByUser")
|
|
111
109
|
|