heartraite 1.0.65 → 1.0.67
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.
- package/dist/enum/index.d.ts +0 -1
- package/dist/enum/index.js +0 -1
- package/dist/types/am.types.d.ts +82 -0
- package/dist/types/am.types.js +2 -0
- package/dist/types/cloud-function-types.d.ts +4 -4
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/match.types.d.ts +1 -12
- package/dist/types/matchmaking.types.d.ts +1 -2
- package/package.json +1 -1
- package/src/enum/index.ts +0 -1
- package/src/types/am.types.ts +96 -0
- package/src/types/cloud-function-types.ts +6 -4
- package/src/types/index.ts +1 -0
- package/src/types/match.types.ts +1 -13
- package/src/types/matchmaking.types.ts +1 -2
- package/dist/enum/match.enum.d.ts +0 -6
- package/dist/enum/match.enum.js +0 -10
- package/src/enum/match.enum.ts +0 -6
package/dist/enum/index.d.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";
|
package/dist/enum/index.js
CHANGED
|
@@ -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,82 @@
|
|
|
1
|
+
type UserID = string;
|
|
2
|
+
export type AMDatingSuggestions = {
|
|
3
|
+
summary: string;
|
|
4
|
+
suggestions: AMDatingSuggestion[];
|
|
5
|
+
};
|
|
6
|
+
export type AMDatingSuggestion = {
|
|
7
|
+
title: string;
|
|
8
|
+
description: string;
|
|
9
|
+
};
|
|
10
|
+
export type AMIcebreakers = {
|
|
11
|
+
summary: string;
|
|
12
|
+
icebreakers: AMIcebreaker[];
|
|
13
|
+
};
|
|
14
|
+
export type AMIcebreaker = {
|
|
15
|
+
title: string;
|
|
16
|
+
description: string;
|
|
17
|
+
};
|
|
18
|
+
export type AMInterest = {
|
|
19
|
+
title: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
export type AMActivity = {
|
|
23
|
+
name: string;
|
|
24
|
+
description: string;
|
|
25
|
+
location: string;
|
|
26
|
+
reasoning: string;
|
|
27
|
+
};
|
|
28
|
+
export type AMInterestActivity = {
|
|
29
|
+
summary: string;
|
|
30
|
+
interests: AMInterest[];
|
|
31
|
+
activities: AMActivity[];
|
|
32
|
+
};
|
|
33
|
+
export type AMLoveLanguage = {
|
|
34
|
+
id: string;
|
|
35
|
+
examples: string[];
|
|
36
|
+
reasoning: string;
|
|
37
|
+
tips: string[];
|
|
38
|
+
};
|
|
39
|
+
export type AMLoveLanguages = {
|
|
40
|
+
summary: string;
|
|
41
|
+
languages: Record<UserID, AMLoveLanguage[]>;
|
|
42
|
+
};
|
|
43
|
+
export type AMPersonalityTrait = {
|
|
44
|
+
id: string;
|
|
45
|
+
examples: string[];
|
|
46
|
+
comparison: string;
|
|
47
|
+
tips: string[];
|
|
48
|
+
};
|
|
49
|
+
export type AMPersonality = {
|
|
50
|
+
summary: string;
|
|
51
|
+
traits: AMPersonalityTrait[];
|
|
52
|
+
};
|
|
53
|
+
export type AMStrength = {
|
|
54
|
+
title: string;
|
|
55
|
+
description: string;
|
|
56
|
+
reasoning: string;
|
|
57
|
+
tips: string[];
|
|
58
|
+
examples: string[];
|
|
59
|
+
};
|
|
60
|
+
export type AMChallenge = {
|
|
61
|
+
title: string;
|
|
62
|
+
description: string;
|
|
63
|
+
reasoning: string;
|
|
64
|
+
tips: string[];
|
|
65
|
+
examples: string[];
|
|
66
|
+
};
|
|
67
|
+
export type AMStrengthsAndChallenges = {
|
|
68
|
+
summary: string;
|
|
69
|
+
strengths: AMStrength[];
|
|
70
|
+
challenges: AMChallenge[];
|
|
71
|
+
};
|
|
72
|
+
export type AdvancedMatch = {
|
|
73
|
+
datingSuggestions: AMDatingSuggestions;
|
|
74
|
+
icebreakers: AMIcebreakers;
|
|
75
|
+
strengthsAndChallenges: AMStrengthsAndChallenges;
|
|
76
|
+
personality: AMPersonality;
|
|
77
|
+
loveLanguages: AMLoveLanguages;
|
|
78
|
+
interestActivity: AMInterestActivity;
|
|
79
|
+
version: string;
|
|
80
|
+
created: string;
|
|
81
|
+
};
|
|
82
|
+
export {};
|
|
@@ -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;
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED
|
@@ -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 {
|
|
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 {
|
|
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>;
|
package/package.json
CHANGED
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,96 @@
|
|
|
1
|
+
type UserID = string;
|
|
2
|
+
|
|
3
|
+
export type AMDatingSuggestions = {
|
|
4
|
+
summary: string;
|
|
5
|
+
suggestions: AMDatingSuggestion[];
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export type AMDatingSuggestion = {
|
|
9
|
+
title: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export type AMIcebreakers = {
|
|
14
|
+
summary: string;
|
|
15
|
+
icebreakers: AMIcebreaker[];
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export type AMIcebreaker = {
|
|
19
|
+
title: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export type AMInterest = {
|
|
24
|
+
title: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export type AMActivity = {
|
|
29
|
+
name: string;
|
|
30
|
+
description: string;
|
|
31
|
+
location: string;
|
|
32
|
+
reasoning: string;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export type AMInterestActivity = {
|
|
36
|
+
summary: string;
|
|
37
|
+
interests: AMInterest[];
|
|
38
|
+
activities: AMActivity[];
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export type AMLoveLanguage = {
|
|
42
|
+
id: string;
|
|
43
|
+
examples: string[];
|
|
44
|
+
reasoning: string;
|
|
45
|
+
tips: string[];
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export type AMLoveLanguages = {
|
|
49
|
+
summary: string;
|
|
50
|
+
languages: Record<UserID, AMLoveLanguage[]>;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export type AMPersonalityTrait = {
|
|
54
|
+
id: string;
|
|
55
|
+
examples: string[];
|
|
56
|
+
comparison: string;
|
|
57
|
+
tips: string[];
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export type AMPersonality = {
|
|
61
|
+
summary: string;
|
|
62
|
+
traits: AMPersonalityTrait[];
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export type AMStrength = {
|
|
66
|
+
title: string;
|
|
67
|
+
description: string;
|
|
68
|
+
reasoning: string;
|
|
69
|
+
tips: string[];
|
|
70
|
+
examples: string[];
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export type AMChallenge = {
|
|
74
|
+
title: string;
|
|
75
|
+
description: string;
|
|
76
|
+
reasoning: string;
|
|
77
|
+
tips: string[];
|
|
78
|
+
examples: string[];
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export type AMStrengthsAndChallenges = {
|
|
82
|
+
summary: string;
|
|
83
|
+
strengths: AMStrength[];
|
|
84
|
+
challenges: AMChallenge[];
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export type AdvancedMatch = {
|
|
88
|
+
datingSuggestions: AMDatingSuggestions;
|
|
89
|
+
icebreakers: AMIcebreakers;
|
|
90
|
+
strengthsAndChallenges: AMStrengthsAndChallenges;
|
|
91
|
+
personality: AMPersonality;
|
|
92
|
+
loveLanguages: AMLoveLanguages;
|
|
93
|
+
interestActivity: AMInterestActivity;
|
|
94
|
+
version: string;
|
|
95
|
+
created: string;
|
|
96
|
+
};
|
|
@@ -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;
|
package/src/types/index.ts
CHANGED
package/src/types/match.types.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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 {
|
|
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 = {
|
package/dist/enum/match.enum.js
DELETED
|
@@ -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 = {}));
|