@remit/storage-service 0.0.17 → 0.0.19

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.
Files changed (2) hide show
  1. package/README.md +0 -29
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -216,35 +216,6 @@ dedup/
216
216
  {hash} # Content-addressable storage for attachments
217
217
  ```
218
218
 
219
- ## Integration with ElectroDB Entities
220
-
221
- ```typescript
222
- import { BodyPartStorageService } from "@remit/remit-electrodb-service";
223
- import { createStorageService } from "@remit/storage-service";
224
-
225
- const storage = createStorageService();
226
- const bodyPartStorageService = new BodyPartStorageService(config);
227
-
228
- // Store content and create entity reference
229
- const ref = await storage.store(content, {
230
- key: `messages/${messageId}/parts/${partPath}`,
231
- contentEncoding: ContentEncoding.Gzip,
232
- });
233
-
234
- await bodyPartStorageService.create({
235
- messageId,
236
- bodyPartId,
237
- storageType: ref.storageType,
238
- storageLocation: ref.storageLocation,
239
- storageKey: ref.storageKey,
240
- decodedSizeBytes: content.length,
241
- checksumSha256: ref.checksumSha256,
242
- contentEncoding: ref.contentEncoding,
243
- isDeduped: false,
244
- storedAt: Date.now(),
245
- });
246
- ```
247
-
248
219
  ## Exports
249
220
 
250
221
  ```typescript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/storage-service",
3
- "version": "0.0.17",
3
+ "version": "0.0.19",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",