heartraite 1.0.38 → 1.0.40

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.
@@ -1,14 +1,17 @@
1
1
  import { AdvancedMatchStatus, LikeType } from "../enum";
2
2
  import { UserProfile } from "./user.types";
3
+ export type MatchAttributes = {
4
+ distance: number;
5
+ bankIDVerified: boolean;
6
+ compatibility: MatchCompatibility;
7
+ };
3
8
  export type MatchableUser = {
4
9
  userId: string;
5
10
  matchId?: string;
6
11
  conversationId?: string;
7
- distance: number;
8
- bankIDVerified: boolean;
9
12
  profile: UserProfile;
10
- compatibility: MatchCompatibility;
11
13
  matchStatus: MatchStatus;
14
+ matchAttributes: MatchAttributes;
12
15
  };
13
16
  export type MatchStatus = {
14
17
  isMatch: boolean;
@@ -20,6 +23,7 @@ export type MatchCompatibility = {
20
23
  totalPercentage: number;
21
24
  };
22
25
  export type MatchCheck = {
26
+ userId: string;
23
27
  profile: UserProfile;
24
- compatibility: MatchCompatibility;
28
+ matchAttributes: MatchAttributes;
25
29
  };
@@ -15,6 +15,7 @@ export type UserSettings = {
15
15
  export type UserPermissions = {
16
16
  registrationReferralAllowed: boolean;
17
17
  };
18
+ export type ProfileInput = Record<string, string>;
18
19
  export type UserProfile = {
19
20
  intro: string;
20
21
  firstName: string;
@@ -29,7 +30,7 @@ export type UserProfile = {
29
30
  image: string;
30
31
  aiSummary?: string;
31
32
  attachedSummary: boolean;
32
- profileInput: Record<string, string>;
33
+ profileInput: ProfileInput;
33
34
  };
34
35
  export type NotificationSettings = {
35
36
  enabled: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heartraite",
3
- "version": "1.0.38",
3
+ "version": "1.0.40",
4
4
  "description": "Heartraite npm package for common functionality",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,15 +1,19 @@
1
1
  import { AdvancedMatchStatus, LikeType } from "../enum";
2
2
  import { UserProfile } from "./user.types";
3
3
 
4
+ export type MatchAttributes = {
5
+ distance: number;
6
+ bankIDVerified: boolean;
7
+ compatibility: MatchCompatibility;
8
+ };
9
+
4
10
  export type MatchableUser = {
5
11
  userId: string;
6
12
  matchId?: string;
7
13
  conversationId?: string;
8
- distance: number;
9
- bankIDVerified: boolean;
10
14
  profile: UserProfile;
11
- compatibility: MatchCompatibility;
12
15
  matchStatus: MatchStatus;
16
+ matchAttributes: MatchAttributes;
13
17
  };
14
18
 
15
19
  export type MatchStatus = {
@@ -24,6 +28,7 @@ export type MatchCompatibility = {
24
28
  };
25
29
 
26
30
  export type MatchCheck = {
31
+ userId: string;
27
32
  profile: UserProfile;
28
- compatibility: MatchCompatibility;
33
+ matchAttributes: MatchAttributes;
29
34
  };
@@ -19,6 +19,8 @@ export type UserPermissions = {
19
19
  registrationReferralAllowed: boolean;
20
20
  };
21
21
 
22
+ export type ProfileInput = Record<string, string>;
23
+
22
24
  export type UserProfile = {
23
25
  intro: string;
24
26
  firstName: string;
@@ -33,7 +35,7 @@ export type UserProfile = {
33
35
  image: string;
34
36
  aiSummary?: string;
35
37
  attachedSummary: boolean;
36
- profileInput: Record<string, string>;
38
+ profileInput: ProfileInput;
37
39
  };
38
40
 
39
41
  export type NotificationSettings = {