heartraite 1.0.177 → 1.0.178

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.
@@ -49,5 +49,6 @@ export declare enum CloudFunction {
49
49
  REGISTER_ONBOARDING = "user/register-onboarding",
50
50
  UPDATE_USER = "user/update-user",
51
51
  GET_CURRENT_USER = "user/get-current-user",
52
- DELETE_USER = "user/delete-user"
52
+ DELETE_USER = "user/delete-user",
53
+ SUBMIT_MATCH_FEEDBACK = "match-outcome/submit-feedback"
53
54
  }
@@ -54,4 +54,5 @@ var CloudFunction;
54
54
  CloudFunction["UPDATE_USER"] = "user/update-user";
55
55
  CloudFunction["GET_CURRENT_USER"] = "user/get-current-user";
56
56
  CloudFunction["DELETE_USER"] = "user/delete-user";
57
+ CloudFunction["SUBMIT_MATCH_FEEDBACK"] = "match-outcome/submit-feedback";
57
58
  })(CloudFunction || (exports.CloudFunction = CloudFunction = {}));
@@ -10,6 +10,12 @@ export type MatchAttributes = {
10
10
  compatibility: MatchCompatibility;
11
11
  compatibilitySummary?: CompatibilitySummary;
12
12
  };
13
+ export type MatchFeedback = {
14
+ ratingEligible: boolean;
15
+ hasSubmittedRating: boolean;
16
+ metEligible: boolean;
17
+ hasSubmittedMet: boolean;
18
+ };
13
19
  export type MatchableUser = {
14
20
  userId: string;
15
21
  matchId?: string;
@@ -17,6 +23,7 @@ export type MatchableUser = {
17
23
  profile: UserProfile;
18
24
  matchStatus: MatchStatus;
19
25
  matchAttributes: MatchAttributes;
26
+ matchFeedback?: MatchFeedback;
20
27
  };
21
28
  export type MatchStatus = {
22
29
  isMatch: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heartraite",
3
- "version": "1.0.177",
3
+ "version": "1.0.178",
4
4
  "description": "Heartraite npm package for common functionality",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -50,4 +50,5 @@ export enum CloudFunction {
50
50
  UPDATE_USER = "user/update-user",
51
51
  GET_CURRENT_USER = "user/get-current-user",
52
52
  DELETE_USER = "user/delete-user",
53
+ SUBMIT_MATCH_FEEDBACK = "match-outcome/submit-feedback",
53
54
  }
@@ -13,6 +13,13 @@ export type MatchAttributes = {
13
13
  compatibilitySummary?: CompatibilitySummary;
14
14
  };
15
15
 
16
+ export type MatchFeedback = {
17
+ ratingEligible: boolean;
18
+ hasSubmittedRating: boolean;
19
+ metEligible: boolean;
20
+ hasSubmittedMet: boolean;
21
+ };
22
+
16
23
  export type MatchableUser = {
17
24
  userId: string;
18
25
  matchId?: string;
@@ -20,6 +27,7 @@ export type MatchableUser = {
20
27
  profile: UserProfile;
21
28
  matchStatus: MatchStatus;
22
29
  matchAttributes: MatchAttributes;
30
+ matchFeedback?: MatchFeedback;
23
31
  };
24
32
 
25
33
  export type MatchStatus = {