@mediaviz/sdk 1.0.78 → 1.0.79
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 +11 -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 +11 -0
- package/dist/sdk.umd.js +11 -0
- package/package.json +1 -1
package/dist/sdk.cjs
CHANGED
|
@@ -1125,6 +1125,17 @@ class Person {
|
|
|
1125
1125
|
return data;
|
|
1126
1126
|
}
|
|
1127
1127
|
|
|
1128
|
+
async getPhotoIdsByPersons(projectTableName, { personId } = {}) {
|
|
1129
|
+
this._ctx.requireTokens();
|
|
1130
|
+
let path = `/api/v1/person/${encodeURIComponent(projectTableName)}/photos`;
|
|
1131
|
+
const query = new URLSearchParams();
|
|
1132
|
+
if (personId !== undefined) (Array.isArray(personId) ? personId : [personId]).forEach(v => query.append('person_id', v));
|
|
1133
|
+
const qs = query.toString();
|
|
1134
|
+
if (qs) path += '?' + qs;
|
|
1135
|
+
const { data } = await this._ctx.client.request(path, 'GET', this._ctx.accessToken, this._ctx.refreshToken);
|
|
1136
|
+
return data;
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1128
1139
|
async getAllPersonsFromPhoto(projectTableName, photoId) {
|
|
1129
1140
|
this._ctx.requireTokens();
|
|
1130
1141
|
const path = `/api/v1/person/${encodeURIComponent(projectTableName)}/photo/${encodeURIComponent(photoId)}`;
|
package/dist/sdk.d.cts
CHANGED
|
@@ -411,6 +411,7 @@ export class Person {
|
|
|
411
411
|
splitPersons(projectTableName: string, id: number, options?: { newName?: string | string[], destinationPersonId?: string | string[] }): Promise<PhotoPersonLight>;
|
|
412
412
|
getAllPersonsFromProject(projectTableName: string): Promise<PhotoPersonWithS3Link[]>;
|
|
413
413
|
getAllPersonNamesFromProject(projectTableName: string): Promise<any>;
|
|
414
|
+
getPhotoIdsByPersons(projectTableName: string, options?: { personId?: string[] | string[][] }): Promise<any>;
|
|
414
415
|
getAllPersonsFromPhoto(projectTableName: string, photoId: number): Promise<PhotoPersonLight[]>;
|
|
415
416
|
}
|
|
416
417
|
|
package/dist/sdk.d.ts
CHANGED
|
@@ -411,6 +411,7 @@ export class Person {
|
|
|
411
411
|
splitPersons(projectTableName: string, id: number, options?: { newName?: string | string[], destinationPersonId?: string | string[] }): Promise<PhotoPersonLight>;
|
|
412
412
|
getAllPersonsFromProject(projectTableName: string): Promise<PhotoPersonWithS3Link[]>;
|
|
413
413
|
getAllPersonNamesFromProject(projectTableName: string): Promise<any>;
|
|
414
|
+
getPhotoIdsByPersons(projectTableName: string, options?: { personId?: string[] | string[][] }): Promise<any>;
|
|
414
415
|
getAllPersonsFromPhoto(projectTableName: string, photoId: number): Promise<PhotoPersonLight[]>;
|
|
415
416
|
}
|
|
416
417
|
|
package/dist/sdk.esm.d.ts
CHANGED
|
@@ -411,6 +411,7 @@ export class Person {
|
|
|
411
411
|
splitPersons(projectTableName: string, id: number, options?: { newName?: string | string[], destinationPersonId?: string | string[] }): Promise<PhotoPersonLight>;
|
|
412
412
|
getAllPersonsFromProject(projectTableName: string): Promise<PhotoPersonWithS3Link[]>;
|
|
413
413
|
getAllPersonNamesFromProject(projectTableName: string): Promise<any>;
|
|
414
|
+
getPhotoIdsByPersons(projectTableName: string, options?: { personId?: string[] | string[][] }): Promise<any>;
|
|
414
415
|
getAllPersonsFromPhoto(projectTableName: string, photoId: number): Promise<PhotoPersonLight[]>;
|
|
415
416
|
}
|
|
416
417
|
|
package/dist/sdk.esm.js
CHANGED
|
@@ -1123,6 +1123,17 @@ class Person {
|
|
|
1123
1123
|
return data;
|
|
1124
1124
|
}
|
|
1125
1125
|
|
|
1126
|
+
async getPhotoIdsByPersons(projectTableName, { personId } = {}) {
|
|
1127
|
+
this._ctx.requireTokens();
|
|
1128
|
+
let path = `/api/v1/person/${encodeURIComponent(projectTableName)}/photos`;
|
|
1129
|
+
const query = new URLSearchParams();
|
|
1130
|
+
if (personId !== undefined) (Array.isArray(personId) ? personId : [personId]).forEach(v => query.append('person_id', v));
|
|
1131
|
+
const qs = query.toString();
|
|
1132
|
+
if (qs) path += '?' + qs;
|
|
1133
|
+
const { data } = await this._ctx.client.request(path, 'GET', this._ctx.accessToken, this._ctx.refreshToken);
|
|
1134
|
+
return data;
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1126
1137
|
async getAllPersonsFromPhoto(projectTableName, photoId) {
|
|
1127
1138
|
this._ctx.requireTokens();
|
|
1128
1139
|
const path = `/api/v1/person/${encodeURIComponent(projectTableName)}/photo/${encodeURIComponent(photoId)}`;
|
package/dist/sdk.umd.js
CHANGED
|
@@ -1129,6 +1129,17 @@
|
|
|
1129
1129
|
return data;
|
|
1130
1130
|
}
|
|
1131
1131
|
|
|
1132
|
+
async getPhotoIdsByPersons(projectTableName, { personId } = {}) {
|
|
1133
|
+
this._ctx.requireTokens();
|
|
1134
|
+
let path = `/api/v1/person/${encodeURIComponent(projectTableName)}/photos`;
|
|
1135
|
+
const query = new URLSearchParams();
|
|
1136
|
+
if (personId !== undefined) (Array.isArray(personId) ? personId : [personId]).forEach(v => query.append('person_id', v));
|
|
1137
|
+
const qs = query.toString();
|
|
1138
|
+
if (qs) path += '?' + qs;
|
|
1139
|
+
const { data } = await this._ctx.client.request(path, 'GET', this._ctx.accessToken, this._ctx.refreshToken);
|
|
1140
|
+
return data;
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1132
1143
|
async getAllPersonsFromPhoto(projectTableName, photoId) {
|
|
1133
1144
|
this._ctx.requireTokens();
|
|
1134
1145
|
const path = `/api/v1/person/${encodeURIComponent(projectTableName)}/photo/${encodeURIComponent(photoId)}`;
|