heartraite 1.0.64 → 1.0.66

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.
@@ -4,7 +4,6 @@ export * from "./cloudfunction.enum";
4
4
  export * from "./evaluation.enum";
5
5
  export * from "./firestore.enum";
6
6
  export * from "./like.enum";
7
- export * from "./match.enum";
8
7
  export * from "./report.enum";
9
8
  export * from "./gender.enum";
10
9
  export * from "./pls.enum";
@@ -20,7 +20,6 @@ __exportStar(require("./cloudfunction.enum"), exports);
20
20
  __exportStar(require("./evaluation.enum"), exports);
21
21
  __exportStar(require("./firestore.enum"), exports);
22
22
  __exportStar(require("./like.enum"), exports);
23
- __exportStar(require("./match.enum"), exports);
24
23
  __exportStar(require("./report.enum"), exports);
25
24
  __exportStar(require("./gender.enum"), exports);
26
25
  __exportStar(require("./pls.enum"), exports);
@@ -0,0 +1,69 @@
1
+ type UserID = string;
2
+ export type AMDatingSuggestion = {
3
+ title: string;
4
+ description: string;
5
+ };
6
+ export type AMIceBreaker = {
7
+ title: string;
8
+ description: string;
9
+ };
10
+ export type AMInterest = {
11
+ title: string;
12
+ description: string;
13
+ };
14
+ export type AMActivity = {
15
+ name: string;
16
+ description: string;
17
+ category: string;
18
+ location: string;
19
+ reasoning: string;
20
+ };
21
+ export type AMInterestActivity = {
22
+ interests: AMInterest[];
23
+ activities: AMActivity[];
24
+ };
25
+ export type AMLoveLanguage = {
26
+ id: string;
27
+ examples: string[];
28
+ reasoning: string;
29
+ tips: string[];
30
+ };
31
+ export type AMPersonalityTrait = {
32
+ id: string;
33
+ examples: string[];
34
+ comparison: string;
35
+ tips: string[];
36
+ };
37
+ export type AMPersonality = {
38
+ overview: string;
39
+ traits: AMPersonalityTrait[];
40
+ };
41
+ export type AMStrength = {
42
+ title: string;
43
+ description: string;
44
+ reasoning: string;
45
+ tips: string[];
46
+ examples: string[];
47
+ };
48
+ export type AMChallenge = {
49
+ title: string;
50
+ description: string;
51
+ reasoning: string;
52
+ tips: string[];
53
+ examples: string[];
54
+ };
55
+ export type AMStrengthsAndChallenges = {
56
+ strengths: AMStrength[];
57
+ challenges: AMChallenge[];
58
+ };
59
+ export type AdvancedMatch = {
60
+ datingSuggestions: AMDatingSuggestion[];
61
+ icebreakers: AMIceBreaker[];
62
+ strengthsAndChallenges: AMStrengthsAndChallenges;
63
+ personality: AMPersonality;
64
+ loveLanguages: Record<UserID, AMLoveLanguage[]>;
65
+ interestActivity: AMInterestActivity;
66
+ version: string;
67
+ created: string;
68
+ };
69
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -50,14 +50,14 @@ export type CloudFunctionTypes = {
50
50
  payload: GetMatchesRequest;
51
51
  response: GetMatchesResponse;
52
52
  };
53
- [CloudFunction.GET_MATCH_CHECK]: {
54
- payload: GetMatchCheckRequest;
55
- response: GetMatchCheckResponse;
56
- };
57
53
  [CloudFunction.REMOVE_MATCH]: {
58
54
  payload: RemoveMatchRequest;
59
55
  response: RemoveMatchResponse;
60
56
  };
57
+ [CloudFunction.GET_MATCH_CHECK]: {
58
+ payload: GetMatchCheckRequest;
59
+ response: GetMatchCheckResponse;
60
+ };
61
61
  [CloudFunction.GET_MATCHABLE_USER]: {
62
62
  payload: GetMatchableUserRequest;
63
63
  response: GetMatchableUserResponse;
@@ -1,3 +1,4 @@
1
+ export * from "./am.types";
1
2
  export * from "./assessment.types";
2
3
  export * from "./ca.types";
3
4
  export * from "./cloud-function-types";
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./am.types"), exports);
17
18
  __exportStar(require("./assessment.types"), exports);
18
19
  __exportStar(require("./ca.types"), exports);
19
20
  __exportStar(require("./cloud-function-types"), exports);
@@ -1,4 +1,4 @@
1
- import { AdvancedMatchStatus } from "../enum/match.enum";
1
+ import { AdvancedMatch } from "./am.types";
2
2
  import { MatchCompatibility } from "./matchmaking.types";
3
3
  export type Match = {
4
4
  id: string;
@@ -7,18 +7,8 @@ export type Match = {
7
7
  initiatedBy: string;
8
8
  conversationId: string;
9
9
  compatibility: MatchCompatibility;
10
- advancedMatchStatus: AdvancedMatchStatus;
11
10
  advancedMatch?: AdvancedMatch;
12
11
  };
13
- export type AdvancedMatch = {
14
- strengths: StrengthOrWeakness[];
15
- weaknesses: StrengthOrWeakness[];
16
- summary: string;
17
- };
18
- interface StrengthOrWeakness {
19
- title: string;
20
- summary: string;
21
- }
22
12
  export type UserMatch = {
23
13
  matchId: string;
24
14
  userId: string;
@@ -28,4 +18,3 @@ export type UserMatch = {
28
18
  initiatedBy: string;
29
19
  users: Record<string, boolean>;
30
20
  };
31
- export {};
@@ -1,4 +1,4 @@
1
- import { AdvancedMatchStatus, LikeType } from "../enum";
1
+ import { LikeType } from "../enum";
2
2
  import { UserProfile } from "./user.types";
3
3
  export type MatchAttributes = {
4
4
  distance: number;
@@ -16,7 +16,6 @@ export type MatchableUser = {
16
16
  export type MatchStatus = {
17
17
  isMatch: boolean;
18
18
  likeType?: LikeType;
19
- advancedMatchStatus?: AdvancedMatchStatus;
20
19
  };
21
20
  export type MatchCompatibility = {
22
21
  categoryPercentages: Record<string, number>;
@@ -1,6 +1,7 @@
1
1
  export type SelfAwareness = {
2
2
  userId: string;
3
3
  categories: SACategory[];
4
+ created: string;
4
5
  };
5
6
  export type SACategory = {
6
7
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heartraite",
3
- "version": "1.0.64",
3
+ "version": "1.0.66",
4
4
  "description": "Heartraite npm package for common functionality",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/enum/index.ts CHANGED
@@ -4,7 +4,6 @@ export * from "./cloudfunction.enum";
4
4
  export * from "./evaluation.enum";
5
5
  export * from "./firestore.enum";
6
6
  export * from "./like.enum";
7
- export * from "./match.enum";
8
7
  export * from "./report.enum";
9
8
  export * from "./gender.enum";
10
9
  export * from "./pls.enum";
@@ -0,0 +1,80 @@
1
+ type UserID = string;
2
+
3
+ export type AMDatingSuggestion = {
4
+ title: string;
5
+ description: string;
6
+ };
7
+
8
+ export type AMIceBreaker = {
9
+ title: string;
10
+ description: string;
11
+ };
12
+
13
+ export type AMInterest = {
14
+ title: string;
15
+ description: string;
16
+ };
17
+
18
+ export type AMActivity = {
19
+ name: string;
20
+ description: string;
21
+ category: string;
22
+ location: string;
23
+ reasoning: string;
24
+ };
25
+
26
+ export type AMInterestActivity = {
27
+ interests: AMInterest[];
28
+ activities: AMActivity[];
29
+ };
30
+
31
+ export type AMLoveLanguage = {
32
+ id: string;
33
+ examples: string[];
34
+ reasoning: string;
35
+ tips: string[];
36
+ };
37
+
38
+ export type AMPersonalityTrait = {
39
+ id: string;
40
+ examples: string[];
41
+ comparison: string;
42
+ tips: string[];
43
+ };
44
+
45
+ export type AMPersonality = {
46
+ overview: string;
47
+ traits: AMPersonalityTrait[];
48
+ };
49
+
50
+ export type AMStrength = {
51
+ title: string;
52
+ description: string;
53
+ reasoning: string;
54
+ tips: string[];
55
+ examples: string[];
56
+ };
57
+
58
+ export type AMChallenge = {
59
+ title: string;
60
+ description: string;
61
+ reasoning: string;
62
+ tips: string[];
63
+ examples: string[];
64
+ };
65
+
66
+ export type AMStrengthsAndChallenges = {
67
+ strengths: AMStrength[];
68
+ challenges: AMChallenge[];
69
+ };
70
+
71
+ export type AdvancedMatch = {
72
+ datingSuggestions: AMDatingSuggestion[];
73
+ icebreakers: AMIceBreaker[];
74
+ strengthsAndChallenges: AMStrengthsAndChallenges;
75
+ personality: AMPersonality;
76
+ loveLanguages: Record<UserID, AMLoveLanguage[]>;
77
+ interestActivity: AMInterestActivity;
78
+ version: string;
79
+ created: string;
80
+ };
@@ -136,14 +136,16 @@ export type CloudFunctionTypes = {
136
136
  payload: GetMatchesRequest;
137
137
  response: GetMatchesResponse;
138
138
  };
139
- [CloudFunction.GET_MATCH_CHECK]: {
140
- payload: GetMatchCheckRequest;
141
- response: GetMatchCheckResponse;
142
- };
143
139
  [CloudFunction.REMOVE_MATCH]: {
144
140
  payload: RemoveMatchRequest;
145
141
  response: RemoveMatchResponse;
146
142
  };
143
+
144
+ // matchmaking
145
+ [CloudFunction.GET_MATCH_CHECK]: {
146
+ payload: GetMatchCheckRequest;
147
+ response: GetMatchCheckResponse;
148
+ };
147
149
  [CloudFunction.GET_MATCHABLE_USER]: {
148
150
  payload: GetMatchableUserRequest;
149
151
  response: GetMatchableUserResponse;
@@ -1,3 +1,4 @@
1
+ export * from "./am.types";
1
2
  export * from "./assessment.types";
2
3
  export * from "./ca.types";
3
4
  export * from "./cloud-function-types";
@@ -1,4 +1,4 @@
1
- import { AdvancedMatchStatus } from "../enum/match.enum";
1
+ import { AdvancedMatch } from "./am.types";
2
2
  import { MatchCompatibility } from "./matchmaking.types";
3
3
 
4
4
  export type Match = {
@@ -8,21 +8,9 @@ export type Match = {
8
8
  initiatedBy: string;
9
9
  conversationId: string;
10
10
  compatibility: MatchCompatibility;
11
- advancedMatchStatus: AdvancedMatchStatus;
12
11
  advancedMatch?: AdvancedMatch;
13
12
  };
14
13
 
15
- export type AdvancedMatch = {
16
- strengths: StrengthOrWeakness[];
17
- weaknesses: StrengthOrWeakness[];
18
- summary: string;
19
- };
20
-
21
- interface StrengthOrWeakness {
22
- title: string;
23
- summary: string;
24
- }
25
-
26
14
  export type UserMatch = {
27
15
  matchId: string;
28
16
  userId: string;
@@ -1,4 +1,4 @@
1
- import { AdvancedMatchStatus, LikeType } from "../enum";
1
+ import { LikeType } from "../enum";
2
2
  import { UserProfile } from "./user.types";
3
3
 
4
4
  export type MatchAttributes = {
@@ -19,7 +19,6 @@ export type MatchableUser = {
19
19
  export type MatchStatus = {
20
20
  isMatch: boolean;
21
21
  likeType?: LikeType;
22
- advancedMatchStatus?: AdvancedMatchStatus;
23
22
  };
24
23
 
25
24
  export type MatchCompatibility = {
@@ -1,6 +1,7 @@
1
1
  export type SelfAwareness = {
2
2
  userId: string;
3
3
  categories: SACategory[];
4
+ created: string;
4
5
  };
5
6
 
6
7
  export type SACategory = {
@@ -1,6 +0,0 @@
1
- export declare enum AdvancedMatchStatus {
2
- INITIAL = "initial",
3
- LOADING = "loading",
4
- ERROR = "error",
5
- SUCCESS = "success"
6
- }
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AdvancedMatchStatus = void 0;
4
- var AdvancedMatchStatus;
5
- (function (AdvancedMatchStatus) {
6
- AdvancedMatchStatus["INITIAL"] = "initial";
7
- AdvancedMatchStatus["LOADING"] = "loading";
8
- AdvancedMatchStatus["ERROR"] = "error";
9
- AdvancedMatchStatus["SUCCESS"] = "success";
10
- })(AdvancedMatchStatus || (exports.AdvancedMatchStatus = AdvancedMatchStatus = {}));
@@ -1,6 +0,0 @@
1
- export enum AdvancedMatchStatus {
2
- INITIAL = "initial",
3
- LOADING = "loading",
4
- ERROR = "error",
5
- SUCCESS = "success",
6
- }