@wtfalch/files 0.3.0 → 0.4.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.
- package/README.md +6 -0
- package/dist/types.d.ts +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -79,6 +79,12 @@ the microseconds needed for pagination. Audit types are exported as `AuditQuery`
|
|
|
79
79
|
`AuditEvent` and `AuditPage`. CSV export remains available through
|
|
80
80
|
`GET /v1/manage/audit?format=csv`; its `x-next-cursor` header supplies continuation.
|
|
81
81
|
|
|
82
|
+
Since 0.4.0 an event also carries `organisationDisplay` and `targetDisplay`:
|
|
83
|
+
what the organisation and the target were CALLED when the row was written, so
|
|
84
|
+
a row reads after the file is deleted or the organisation closed. Both are
|
|
85
|
+
null on a row written before 0.4.0, and on a target the service has no name
|
|
86
|
+
for, so a reader falls back to the id.
|
|
87
|
+
|
|
82
88
|
`provisionOrganisation()` returns the organisation fields plus `created`:
|
|
83
89
|
`true` for a new organisation (HTTP 201), `false` when it already existed
|
|
84
90
|
(HTTP 200). A repeat provisioning call preserves the existing ceilings and share
|
package/dist/types.d.ts
CHANGED
|
@@ -169,10 +169,14 @@ export interface AuditEvent {
|
|
|
169
169
|
id: number;
|
|
170
170
|
occurredAt: string;
|
|
171
171
|
organisationId: string | null;
|
|
172
|
+
/** What the organisation was called when the row was written; null on a row written before Files 0.4.0. */
|
|
173
|
+
organisationDisplay?: string | null;
|
|
172
174
|
action: string;
|
|
173
175
|
actorDisplay: string;
|
|
174
176
|
targetType: string;
|
|
175
177
|
targetId: string | null;
|
|
178
|
+
/** What the target was called when the row was written; null on a row written before Files 0.4.0. */
|
|
179
|
+
targetDisplay?: string | null;
|
|
176
180
|
outcome: string;
|
|
177
181
|
context: string;
|
|
178
182
|
reason: string | null;
|