@redseat/api 0.0.6 → 0.0.7

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/dist/library.js +7 -7
  2. package/package.json +1 -1
package/dist/library.js CHANGED
@@ -303,31 +303,31 @@ export class LibraryApi {
303
303
  queryParams[key] = value;
304
304
  }
305
305
  }
306
- const res = await this.client.get(this.getUrl('/faces/unassigned'), { params: queryParams });
306
+ const res = await this.client.get(this.getUrl('/people/faces/unassigned'), { params: queryParams });
307
307
  return res.data;
308
308
  }
309
309
  async getClusters() {
310
- const res = await this.client.get(this.getUrl('/faces/clusters'));
310
+ const res = await this.client.get(this.getUrl('/people/faces/clusters'));
311
311
  return res.data;
312
312
  }
313
313
  async assignFaces(request) {
314
- const res = await this.client.post(this.getUrl('/faces/assign'), request);
314
+ const res = await this.client.post(this.getUrl('/people/faces/assign'), request);
315
315
  return res.data;
316
316
  }
317
317
  async createPersonFromCluster(request) {
318
- const res = await this.client.post(this.getUrl('/faces/cluster/person'), request);
318
+ const res = await this.client.post(this.getUrl('/people/faces/cluster/person'), request);
319
319
  return res.data;
320
320
  }
321
321
  async splitCluster(request) {
322
- const res = await this.client.post(this.getUrl('/faces/cluster/split'), request);
322
+ const res = await this.client.post(this.getUrl('/people/faces/cluster/split'), request);
323
323
  return res.data;
324
324
  }
325
325
  async unassignFace(request) {
326
- const res = await this.client.post(this.getUrl('/faces/unassign'), request);
326
+ const res = await this.client.post(this.getUrl('/people/faces/unassign'), request);
327
327
  return res.data;
328
328
  }
329
329
  async deleteFace(faceId) {
330
- const res = await this.client.delete(this.getUrl(`/faces/${faceId}`));
330
+ const res = await this.client.delete(this.getUrl(`/people/faces/${faceId}`));
331
331
  return res.data;
332
332
  }
333
333
  async getAssignedFaces(personId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redseat/api",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "TypeScript API client library for interacting with Redseat servers",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",