@kokimoki/app 0.5.1 → 0.5.2

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.
@@ -40,5 +40,9 @@ export declare class KokimokiClient<StatelessDataT = any> extends KokimokiClient
40
40
  mimeTypes?: string[];
41
41
  tags?: string[];
42
42
  }, skip?: number, limit?: number): Promise<Paginated<Upload>>;
43
+ deleteUpload(id: string): Promise<{
44
+ acknowledged: boolean;
45
+ deletedCount: number;
46
+ }>;
43
47
  }
44
48
  export {};
@@ -186,4 +186,11 @@ export class KokimokiClient extends EventEmitter {
186
186
  });
187
187
  return await res.json();
188
188
  }
189
+ async deleteUpload(id) {
190
+ const res = await fetch(`${this._apiUrl}/uploads/${id}`, {
191
+ method: "DELETE",
192
+ headers: this.apiHeaders,
193
+ });
194
+ return await res.json();
195
+ }
189
196
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kokimoki/app",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "type": "module",
5
5
  "description": "Kokimoki app",
6
6
  "main": "dist/index.js",