@uniteverses/shared 1.0.1 → 1.0.3

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/README.md CHANGED
@@ -14,4 +14,4 @@ npm publish --access public
14
14
  #
15
15
 
16
16
  cd uniteverses-website
17
- npm update @uniteverses/shared
17
+ npm install @uniteverses/shared@latest
@@ -12,22 +12,26 @@ export interface CreateProfileInput {
12
12
  dob: string;
13
13
  translations?: ProfileTranslationInput[];
14
14
  }
15
+ export interface UpdateProfileInput {
16
+ dob?: string;
17
+ translations?: ProfileTranslationInput[];
18
+ }
15
19
  export interface ProfileTranslation {
16
20
  id: string;
17
21
  profileId: string;
18
22
  languageId: string;
19
23
  bio: string | null;
20
24
  job: string | null;
21
- createdAt: string;
22
- updatedAt: string;
25
+ createdAt: string | Date;
26
+ updatedAt: string | Date;
23
27
  language: Language;
24
28
  }
25
29
  export interface Profile {
26
30
  id: string;
27
31
  userId: string;
28
- dob: string;
29
- createdAt: string;
30
- updatedAt: string;
32
+ dob: string | Date;
33
+ createdAt: string | Date;
34
+ updatedAt: string | Date;
31
35
  translations: ProfileTranslation[];
32
36
  user: User;
33
37
  }
@@ -36,8 +40,11 @@ export interface User {
36
40
  firstName: string;
37
41
  lastName: string;
38
42
  username: string;
39
- createdAt: string;
43
+ createdAt: string | Date;
40
44
  }
41
45
  export interface CheckProfileResult {
42
46
  exists: boolean;
43
47
  }
48
+ export interface DeleteProfileResult {
49
+ deleted: boolean;
50
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniteverses/shared",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [