Skip to content

Commit

Permalink
feat(type): user
Browse files Browse the repository at this point in the history
  • Loading branch information
njfamirm authored and AliMD committed Jan 8, 2023
1 parent 79426ea commit 30b8edb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/type/src/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ export type AlwatrDocumentObject = {
};
};

export type AlwatrDocumentMeta = {
export type AlwatrStorageMeta = {
formatVersion: number;
reversion: number;
lastUpdated: number;
lastAutoId: number;
};

export type AlwatrDocumentStorage<T extends AlwatrDocumentObject> = Omit<
AlwatrServiceResponseSuccessWithMeta<Record<string, T>, AlwatrDocumentMeta>,
AlwatrServiceResponseSuccessWithMeta<Record<string, T>, AlwatrStorageMeta>,
'statusCode' | 'errorCode'
>;
7 changes: 7 additions & 0 deletions core/type/src/user.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export type User = {
id: string;
identity: {
phoneNumber: string;
email?: string;
};
};

0 comments on commit 30b8edb

Please sign in to comment.