graphile-presigned-url-plugin 0.14.1 → 0.15.1
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/esm/plugin.d.ts +5 -12
- package/esm/plugin.js +145 -402
- package/package.json +4 -4
- package/plugin.d.ts +5 -12
- package/plugin.js +145 -402
package/esm/plugin.d.ts
CHANGED
|
@@ -3,22 +3,15 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Hooks into PostGraphile's auto-generated CRUD mutations to add S3 operations:
|
|
5
5
|
*
|
|
6
|
-
* 1.
|
|
7
|
-
* with S3 object cleanup (sync + async GC fallback via AFTER DELETE trigger).
|
|
8
|
-
*
|
|
9
|
-
* 2. Upload fields — adds `requestUploadUrl` and `requestBulkUploadUrls` fields
|
|
10
|
-
* on `@storageBuckets`-tagged types, so clients upload via the typed bucket API.
|
|
11
|
-
*
|
|
12
|
-
* 3. Mutation entry points — adds per-bucket mutation fields on the root Mutation
|
|
13
|
-
* type (e.g., `appBucket(key: "public"): AppBucket`), so upload operations
|
|
14
|
-
* can be accessed as proper GraphQL mutations instead of queries.
|
|
15
|
-
*
|
|
16
|
-
* 4. File upload mutations — adds `upload<FileType>(input: {...})` mutations
|
|
6
|
+
* 1. File upload mutations — adds `upload<FileType>(input: {...})` mutations
|
|
17
7
|
* on root Mutation for each @storageFiles/@storageBuckets pair. These combine
|
|
18
8
|
* bucket resolution + file INSERT + presigned URL generation in one step.
|
|
19
9
|
* E.g., `uploadAppFile(input: { bucketKey: "public", contentHash: "...", ... })`
|
|
20
10
|
*
|
|
21
|
-
*
|
|
11
|
+
* 2. Delete middleware — wraps `delete*` mutations on `@storageFiles`-tagged tables
|
|
12
|
+
* with S3 object cleanup (sync + async GC fallback via AFTER DELETE trigger).
|
|
13
|
+
*
|
|
14
|
+
* 3. downloadUrl — handled by download-url-field.ts (separate plugin).
|
|
22
15
|
*
|
|
23
16
|
* Scope resolution uses the codec's schema/table name matched against
|
|
24
17
|
* cached storage module configs.
|