@kokimoki/app 0.3.1 → 0.3.3

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.
@@ -38,6 +38,7 @@ export declare class KokimokiClient<StatelessDataT = any> extends KokimokiClient
38
38
  listUploads(filter?: {
39
39
  clientId?: string;
40
40
  mimeTypes?: string[];
41
+ tags?: string[];
41
42
  }, skip?: number, limit?: number): Promise<Paginated<Upload>>;
42
43
  }
43
44
  export {};
@@ -178,6 +178,9 @@ export class KokimokiClient extends EventEmitter {
178
178
  if (filter.mimeTypes) {
179
179
  url.searchParams.set("mimeTypes", filter.mimeTypes.join());
180
180
  }
181
+ if (filter.tags) {
182
+ url.searchParams.set("tags", filter.tags.join());
183
+ }
181
184
  const res = await fetch(url.href, {
182
185
  headers: this.apiHeaders,
183
186
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kokimoki/app",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "type": "module",
5
5
  "description": "Kokimoki app",
6
6
  "main": "dist/index.js",