heartraite 1.0.24 → 1.0.26

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.
@@ -11,10 +11,10 @@ export declare enum CloudFunction {
11
11
  GET_MATCH = "match/get-match",
12
12
  HANDLE_MATCH_SEEN = "match/handle-match-seen",
13
13
  GET_MATCHES = "match/get-matches",
14
- GET_MATCH_CHECK = "match/get-match-check",
15
14
  REMOVE_MATCH = "match/remove-match",
16
- GET_MATCHABLE_USER = "match/get-matchable-user",
17
- GET_MATCHABLE_USERS = "match/get-matchable-users",
15
+ GET_MATCH_CHECK = "matchmaking/get-match-check",
16
+ GET_MATCHABLE_USER = "matchmaking/get-matchable-user",
17
+ GET_MATCHABLE_USERS = "matchmaking/get-matchable-users",
18
18
  SEND_MESSAGE = "message/send-message",
19
19
  GET_MESSAGES = "message/get-messages",
20
20
  CALCULATE_PLS_SCORE = "pls/calculate-score",
@@ -15,10 +15,10 @@ var CloudFunction;
15
15
  CloudFunction["GET_MATCH"] = "match/get-match";
16
16
  CloudFunction["HANDLE_MATCH_SEEN"] = "match/handle-match-seen";
17
17
  CloudFunction["GET_MATCHES"] = "match/get-matches";
18
- CloudFunction["GET_MATCH_CHECK"] = "match/get-match-check";
19
18
  CloudFunction["REMOVE_MATCH"] = "match/remove-match";
20
- CloudFunction["GET_MATCHABLE_USER"] = "match/get-matchable-user";
21
- CloudFunction["GET_MATCHABLE_USERS"] = "match/get-matchable-users";
19
+ CloudFunction["GET_MATCH_CHECK"] = "matchmaking/get-match-check";
20
+ CloudFunction["GET_MATCHABLE_USER"] = "matchmaking/get-matchable-user";
21
+ CloudFunction["GET_MATCHABLE_USERS"] = "matchmaking/get-matchable-users";
22
22
  CloudFunction["SEND_MESSAGE"] = "message/send-message";
23
23
  CloudFunction["GET_MESSAGES"] = "message/get-messages";
24
24
  CloudFunction["CALCULATE_PLS_SCORE"] = "pls/calculate-score";
@@ -5,6 +5,7 @@ export * from "./error.types";
5
5
  export * from "./helper.types";
6
6
  export * from "./like.types";
7
7
  export * from "./match.types";
8
+ export * from "./matchmaking.types";
8
9
  export * from "./message.types";
9
10
  export * from "./request.types";
10
11
  export * from "./report.types";
@@ -21,6 +21,7 @@ __exportStar(require("./error.types"), exports);
21
21
  __exportStar(require("./helper.types"), exports);
22
22
  __exportStar(require("./like.types"), exports);
23
23
  __exportStar(require("./match.types"), exports);
24
+ __exportStar(require("./matchmaking.types"), exports);
24
25
  __exportStar(require("./message.types"), exports);
25
26
  __exportStar(require("./request.types"), exports);
26
27
  __exportStar(require("./report.types"), exports);
@@ -1,7 +1,5 @@
1
- import { LikeType } from "../enum";
2
1
  import { AdvancedMatchStatus } from "../enum/match.enum";
3
2
  import { RatedQuestions } from "./rating.types";
4
- import { UserProfile } from "./user.types";
5
3
  export type Match = {
6
4
  id: string;
7
5
  users: Record<string, boolean>;
@@ -21,26 +19,6 @@ interface StrengthOrWeakness {
21
19
  title: string;
22
20
  summary: string;
23
21
  }
24
- export type MatchStatus = {
25
- likeType?: LikeType;
26
- advancedMatchStatus?: AdvancedMatchStatus;
27
- };
28
- export type MatchData = {
29
- percentages: Record<string, number>;
30
- totalPercentage: number;
31
- isMatch: boolean;
32
- };
33
- export type MatchableUser = {
34
- matchId?: string;
35
- conversationId?: string;
36
- profile: UserProfile;
37
- matchData: MatchData;
38
- matchStatus: MatchStatus;
39
- };
40
- export type MatchCheck = {
41
- profile: UserProfile;
42
- matchData: MatchData;
43
- };
44
22
  export type UserMatch = {
45
23
  matchId: string;
46
24
  userId: string;
@@ -0,0 +1,23 @@
1
+ import { AdvancedMatchStatus, LikeType } from "../enum";
2
+ import { UserProfile } from "./user.types";
3
+ export type MatchableUser = {
4
+ matchId?: string;
5
+ conversationId?: string;
6
+ distance: number;
7
+ profile: UserProfile;
8
+ compatibility: MatchCompatibility;
9
+ matchStatus: MatchStatus;
10
+ };
11
+ export type MatchStatus = {
12
+ isMatch: boolean;
13
+ likeType?: LikeType;
14
+ advancedMatchStatus?: AdvancedMatchStatus;
15
+ };
16
+ export type MatchCompatibility = {
17
+ categoryPercentages: Record<string, number>;
18
+ totalPercentage: number;
19
+ };
20
+ export type MatchCheck = {
21
+ profile: UserProfile;
22
+ compatibility: MatchCompatibility;
23
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,7 @@
1
1
  import { Assessment, FullAssessment } from "./assessment.types";
2
2
  import { Submission, CategoryEvaluation } from "./submission.types";
3
- import { Match, MatchableUser, MatchCheck, UserMatch } from "./match.types";
3
+ import { Match, UserMatch } from "./match.types";
4
+ import { MatchableUser, MatchCheck } from "./matchmaking.types";
4
5
  import { Message } from "./message.types";
5
6
  import { StripeProduct } from "./stripe.types";
6
7
  import { User } from "./user.types";
@@ -8,7 +8,6 @@ export type User = {
8
8
  preferences: DatingPreferences;
9
9
  notifications: UserNotifications;
10
10
  settings: UserSettings;
11
- status: UserStatus;
12
11
  };
13
12
  export type UserStatus = {
14
13
  caStatus: CAStatus;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heartraite",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "description": "Heartraite npm package for common functionality",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,10 +11,10 @@ export enum CloudFunction {
11
11
  GET_MATCH = "match/get-match",
12
12
  HANDLE_MATCH_SEEN = "match/handle-match-seen",
13
13
  GET_MATCHES = "match/get-matches",
14
- GET_MATCH_CHECK = "match/get-match-check",
15
14
  REMOVE_MATCH = "match/remove-match",
16
- GET_MATCHABLE_USER = "match/get-matchable-user",
17
- GET_MATCHABLE_USERS = "match/get-matchable-users",
15
+ GET_MATCH_CHECK = "matchmaking/get-match-check",
16
+ GET_MATCHABLE_USER = "matchmaking/get-matchable-user",
17
+ GET_MATCHABLE_USERS = "matchmaking/get-matchable-users",
18
18
  SEND_MESSAGE = "message/send-message",
19
19
  GET_MESSAGES = "message/get-messages",
20
20
  CALCULATE_PLS_SCORE = "pls/calculate-score",
@@ -5,6 +5,7 @@ export * from "./error.types";
5
5
  export * from "./helper.types";
6
6
  export * from "./like.types";
7
7
  export * from "./match.types";
8
+ export * from "./matchmaking.types";
8
9
  export * from "./message.types";
9
10
  export * from "./request.types";
10
11
  export * from "./report.types";
@@ -1,7 +1,5 @@
1
- import { LikeType } from "../enum";
2
1
  import { AdvancedMatchStatus } from "../enum/match.enum";
3
2
  import { RatedQuestions } from "./rating.types";
4
- import { UserProfile } from "./user.types";
5
3
 
6
4
  export type Match = {
7
5
  id: string;
@@ -25,30 +23,6 @@ interface StrengthOrWeakness {
25
23
  summary: string;
26
24
  }
27
25
 
28
- export type MatchStatus = {
29
- likeType?: LikeType;
30
- advancedMatchStatus?: AdvancedMatchStatus;
31
- };
32
-
33
- export type MatchData = {
34
- percentages: Record<string, number>;
35
- totalPercentage: number;
36
- isMatch: boolean;
37
- };
38
-
39
- export type MatchableUser = {
40
- matchId?: string;
41
- conversationId?: string;
42
- profile: UserProfile;
43
- matchData: MatchData;
44
- matchStatus: MatchStatus;
45
- };
46
-
47
- export type MatchCheck = {
48
- profile: UserProfile;
49
- matchData: MatchData;
50
- };
51
-
52
26
  export type UserMatch = {
53
27
  matchId: string;
54
28
  userId: string;
@@ -0,0 +1,27 @@
1
+ import { AdvancedMatchStatus, LikeType } from "../enum";
2
+ import { UserProfile } from "./user.types";
3
+
4
+ export type MatchableUser = {
5
+ matchId?: string;
6
+ conversationId?: string;
7
+ distance: number;
8
+ profile: UserProfile;
9
+ compatibility: MatchCompatibility;
10
+ matchStatus: MatchStatus;
11
+ };
12
+
13
+ export type MatchStatus = {
14
+ isMatch: boolean;
15
+ likeType?: LikeType;
16
+ advancedMatchStatus?: AdvancedMatchStatus;
17
+ };
18
+
19
+ export type MatchCompatibility = {
20
+ categoryPercentages: Record<string, number>;
21
+ totalPercentage: number;
22
+ };
23
+
24
+ export type MatchCheck = {
25
+ profile: UserProfile;
26
+ compatibility: MatchCompatibility;
27
+ };
@@ -1,6 +1,7 @@
1
1
  import { Assessment, FullAssessment } from "./assessment.types";
2
2
  import { Submission, CategoryEvaluation } from "./submission.types";
3
- import { Match, MatchableUser, MatchCheck, UserMatch } from "./match.types";
3
+ import { Match, UserMatch } from "./match.types";
4
+ import { MatchableUser, MatchCheck } from "./matchmaking.types";
4
5
  import { Message } from "./message.types";
5
6
  import { StripeProduct } from "./stripe.types";
6
7
  import { User } from "./user.types";
@@ -9,7 +9,6 @@ export type User = {
9
9
  preferences: DatingPreferences;
10
10
  notifications: UserNotifications;
11
11
  settings: UserSettings;
12
- status: UserStatus;
13
12
  };
14
13
 
15
14
  export type UserStatus = {