feat: show archived assets for a person
This commit is contained in:
@@ -4152,6 +4152,14 @@
|
||||
"format": "uuid",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "withArchived",
|
||||
"required": false,
|
||||
"in": "query",
|
||||
"schema": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
@@ -10097,6 +10105,10 @@
|
||||
"name": {
|
||||
"description": "Person name.",
|
||||
"type": "string"
|
||||
},
|
||||
"withArchived": {
|
||||
"description": "This property was added in v1.118.0",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -10229,6 +10241,10 @@
|
||||
"description": "This property was added in v1.107.0",
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
},
|
||||
"withArchived": {
|
||||
"description": "This property was added in v1.118.0",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -10270,6 +10286,10 @@
|
||||
"name": {
|
||||
"description": "Person name.",
|
||||
"type": "string"
|
||||
},
|
||||
"withArchived": {
|
||||
"description": "This property was added in v1.118.0",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
@@ -10303,6 +10323,10 @@
|
||||
"description": "This property was added in v1.107.0",
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
},
|
||||
"withArchived": {
|
||||
"description": "This property was added in v1.118.0",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
|
||||
@@ -220,6 +220,8 @@ export type PersonWithFacesResponseDto = {
|
||||
thumbnailPath: string;
|
||||
/** This property was added in v1.107.0 */
|
||||
updatedAt?: string;
|
||||
/** This property was added in v1.118.0 */
|
||||
withArchived?: boolean;
|
||||
};
|
||||
export type SmartInfoResponseDto = {
|
||||
objects?: string[] | null;
|
||||
@@ -502,6 +504,8 @@ export type PersonResponseDto = {
|
||||
thumbnailPath: string;
|
||||
/** This property was added in v1.107.0 */
|
||||
updatedAt?: string;
|
||||
/** This property was added in v1.118.0 */
|
||||
withArchived?: boolean;
|
||||
};
|
||||
export type AssetFaceResponseDto = {
|
||||
boundingBoxX1: number;
|
||||
@@ -703,6 +707,8 @@ export type PeopleUpdateItem = {
|
||||
isHidden?: boolean;
|
||||
/** Person name. */
|
||||
name?: string;
|
||||
/** This property was added in v1.118.0 */
|
||||
withArchived?: boolean;
|
||||
};
|
||||
export type PeopleUpdateDto = {
|
||||
people: PeopleUpdateItem[];
|
||||
@@ -717,6 +723,8 @@ export type PersonUpdateDto = {
|
||||
isHidden?: boolean;
|
||||
/** Person name. */
|
||||
name?: string;
|
||||
/** This property was added in v1.118.0 */
|
||||
withArchived?: boolean;
|
||||
};
|
||||
export type MergePersonDto = {
|
||||
ids: string[];
|
||||
@@ -2410,13 +2418,16 @@ export function reassignFaces({ id, assetFaceUpdateDto }: {
|
||||
body: assetFaceUpdateDto
|
||||
})));
|
||||
}
|
||||
export function getPersonStatistics({ id }: {
|
||||
export function getPersonStatistics({ id, withArchived }: {
|
||||
id: string;
|
||||
withArchived?: boolean;
|
||||
}, opts?: Oazapfts.RequestOpts) {
|
||||
return oazapfts.ok(oazapfts.fetchJson<{
|
||||
status: 200;
|
||||
data: PersonStatisticsResponseDto;
|
||||
}>(`/people/${encodeURIComponent(id)}/statistics`, {
|
||||
}>(`/people/${encodeURIComponent(id)}/statistics${QS.query(QS.explode({
|
||||
withArchived
|
||||
}))}`, {
|
||||
...opts
|
||||
}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user