heartraite 1.0.37 → 1.0.39

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
  };
@@ -123,6 +123,10 @@ export type UpdateUserRequest = {
123
123
  notifications?: DeepPartial<UserNotifications & {
124
124
  expoPushToken?: Partial<string>;
125
125
  }>;
126
+ geoLocation?: {
127
+ lat: number;
128
+ lng: number;
129
+ };
126
130
  };
127
131
  export type AddImagesRequest = {
128
132
  images: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heartraite",
3
- "version": "1.0.37",
3
+ "version": "1.0.39",
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
  };
@@ -130,6 +130,7 @@ export type UpdateUserRequest = {
130
130
  notifications?: DeepPartial<
131
131
  UserNotifications & { expoPushToken?: Partial<string> }
132
132
  >;
133
+ geoLocation?: { lat: number; lng: number };
133
134
  };
134
135
 
135
136
  // storage