Skip to content

Commit

Permalink
Merge pull request #10 from internxt/feature/improve-photos-types
Browse files Browse the repository at this point in the history
(photos) Updated Photo model; added PhotoStatus enum
  • Loading branch information
carlossalasamper authored Dec 29, 2021
2 parents 9cbba9d + 95c349d commit 28fba89
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@internxt/sdk",
"version": "0.1.7",
"version": "0.1.8",
"description": "An sdk for interacting with Internxt's services",
"repository": {
"type": "git",
Expand Down
16 changes: 13 additions & 3 deletions src/photos/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,35 @@ export interface Device {
id: DeviceId;
mac: string;
name: string;
userUuid: string;
userId: string;
createdAt: string;
updatedAt: string;
}

export type PhotoType = string;
export type FileId = string;
export type PhotoId = string;

export enum PhotoStatus {
Exists = 'EXISTS',
Trashed = 'TRASHED',
Deleted = 'DELETED',
}

export interface Photo {
id: PhotoId;
name: string;
type: PhotoType;
size: number;
width: number;
heigth: number;
height: number;
fileId: FileId;
previewId: FileId;
deviceId: DeviceId;
userUuid: string;
userId: string;
status: PhotoStatus;
lastStatusChangeAt: string;
creationDate: string;
createdAt: string;
updatedAt: string;
}
Expand Down

0 comments on commit 28fba89

Please sign in to comment.