@mediaviz/sdk 1.8.0-dev.91 → 1.8.0-dev.92
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/dist/sdk.cjs +7 -0
- package/dist/sdk.d.cts +1 -0
- package/dist/sdk.d.ts +1 -0
- package/dist/sdk.esm.d.ts +1 -0
- package/dist/sdk.esm.js +7 -0
- package/dist/sdk.umd.js +7 -0
- package/package.json +1 -1
package/dist/sdk.cjs
CHANGED
|
@@ -1196,6 +1196,13 @@ class Person {
|
|
|
1196
1196
|
const { data } = await this._ctx.client.request(path, 'GET', this._ctx.accessToken, this._ctx.refreshToken);
|
|
1197
1197
|
return data;
|
|
1198
1198
|
}
|
|
1199
|
+
|
|
1200
|
+
async removePerson(projectTableName, personId) {
|
|
1201
|
+
this._ctx.requireTokens();
|
|
1202
|
+
const path = `/api/v1/person/${encodeURIComponent(projectTableName)}/${encodeURIComponent(personId)}`;
|
|
1203
|
+
const { data } = await this._ctx.client.request(path, 'DELETE', this._ctx.accessToken, this._ctx.refreshToken);
|
|
1204
|
+
return data;
|
|
1205
|
+
}
|
|
1199
1206
|
}
|
|
1200
1207
|
|
|
1201
1208
|
function stripUndef$3(o) { const r = {}; for (const k in o) if (o[k] !== undefined) r[k] = o[k]; return r; }
|
package/dist/sdk.d.cts
CHANGED
|
@@ -447,6 +447,7 @@ export class Person {
|
|
|
447
447
|
getAllPersonNamesFromProject(projectTableName: string): Promise<any>;
|
|
448
448
|
getPhotoIdsByPersons(projectTableName: string, options?: { personId?: string[] | string[][] }): Promise<any>;
|
|
449
449
|
getAllPersonsFromPhoto(projectTableName: string, photoId: number): Promise<PhotoPersonLight[]>;
|
|
450
|
+
removePerson(projectTableName: string, personId: string): Promise<Record<string, any>>;
|
|
450
451
|
}
|
|
451
452
|
|
|
452
453
|
export class Photoupload {
|
package/dist/sdk.d.ts
CHANGED
|
@@ -447,6 +447,7 @@ export class Person {
|
|
|
447
447
|
getAllPersonNamesFromProject(projectTableName: string): Promise<any>;
|
|
448
448
|
getPhotoIdsByPersons(projectTableName: string, options?: { personId?: string[] | string[][] }): Promise<any>;
|
|
449
449
|
getAllPersonsFromPhoto(projectTableName: string, photoId: number): Promise<PhotoPersonLight[]>;
|
|
450
|
+
removePerson(projectTableName: string, personId: string): Promise<Record<string, any>>;
|
|
450
451
|
}
|
|
451
452
|
|
|
452
453
|
export class Photoupload {
|
package/dist/sdk.esm.d.ts
CHANGED
|
@@ -447,6 +447,7 @@ export class Person {
|
|
|
447
447
|
getAllPersonNamesFromProject(projectTableName: string): Promise<any>;
|
|
448
448
|
getPhotoIdsByPersons(projectTableName: string, options?: { personId?: string[] | string[][] }): Promise<any>;
|
|
449
449
|
getAllPersonsFromPhoto(projectTableName: string, photoId: number): Promise<PhotoPersonLight[]>;
|
|
450
|
+
removePerson(projectTableName: string, personId: string): Promise<Record<string, any>>;
|
|
450
451
|
}
|
|
451
452
|
|
|
452
453
|
export class Photoupload {
|
package/dist/sdk.esm.js
CHANGED
|
@@ -1194,6 +1194,13 @@ class Person {
|
|
|
1194
1194
|
const { data } = await this._ctx.client.request(path, 'GET', this._ctx.accessToken, this._ctx.refreshToken);
|
|
1195
1195
|
return data;
|
|
1196
1196
|
}
|
|
1197
|
+
|
|
1198
|
+
async removePerson(projectTableName, personId) {
|
|
1199
|
+
this._ctx.requireTokens();
|
|
1200
|
+
const path = `/api/v1/person/${encodeURIComponent(projectTableName)}/${encodeURIComponent(personId)}`;
|
|
1201
|
+
const { data } = await this._ctx.client.request(path, 'DELETE', this._ctx.accessToken, this._ctx.refreshToken);
|
|
1202
|
+
return data;
|
|
1203
|
+
}
|
|
1197
1204
|
}
|
|
1198
1205
|
|
|
1199
1206
|
function stripUndef$3(o) { const r = {}; for (const k in o) if (o[k] !== undefined) r[k] = o[k]; return r; }
|
package/dist/sdk.umd.js
CHANGED
|
@@ -1200,6 +1200,13 @@
|
|
|
1200
1200
|
const { data } = await this._ctx.client.request(path, 'GET', this._ctx.accessToken, this._ctx.refreshToken);
|
|
1201
1201
|
return data;
|
|
1202
1202
|
}
|
|
1203
|
+
|
|
1204
|
+
async removePerson(projectTableName, personId) {
|
|
1205
|
+
this._ctx.requireTokens();
|
|
1206
|
+
const path = `/api/v1/person/${encodeURIComponent(projectTableName)}/${encodeURIComponent(personId)}`;
|
|
1207
|
+
const { data } = await this._ctx.client.request(path, 'DELETE', this._ctx.accessToken, this._ctx.refreshToken);
|
|
1208
|
+
return data;
|
|
1209
|
+
}
|
|
1203
1210
|
}
|
|
1204
1211
|
|
|
1205
1212
|
function stripUndef$3(o) { const r = {}; for (const k in o) if (o[k] !== undefined) r[k] = o[k]; return r; }
|