heartraite 1.0.200 → 1.0.202
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/matchmaking.enum.d.ts +4 -0
- package/dist/enum/matchmaking.enum.js +6 -1
- package/dist/types/like.types.d.ts +10 -0
- package/dist/types/response.types.d.ts +2 -1
- package/dist/types/user.types.d.ts +2 -1
- package/package.json +1 -1
- package/src/enum/matchmaking.enum.ts +5 -0
- package/src/types/like.types.ts +12 -0
- package/src/types/response.types.ts +2 -1
- package/src/types/user.types.ts +2 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MatchmakingMode = void 0;
|
|
3
|
+
exports.MatchmakingMethod = exports.MatchmakingMode = void 0;
|
|
4
4
|
var MatchmakingMode;
|
|
5
5
|
(function (MatchmakingMode) {
|
|
6
6
|
MatchmakingMode["ACTIVE"] = "active";
|
|
@@ -11,3 +11,8 @@ var MatchmakingMode;
|
|
|
11
11
|
// (photo review flips PENDING -> ACTIVE). Excluded from the feed exactly like PAUSED/DISABLED.
|
|
12
12
|
MatchmakingMode["PENDING"] = "pending";
|
|
13
13
|
})(MatchmakingMode || (exports.MatchmakingMode = MatchmakingMode = {}));
|
|
14
|
+
var MatchmakingMethod;
|
|
15
|
+
(function (MatchmakingMethod) {
|
|
16
|
+
MatchmakingMethod["GPS"] = "gps";
|
|
17
|
+
MatchmakingMethod["REGION"] = "region";
|
|
18
|
+
})(MatchmakingMethod || (exports.MatchmakingMethod = MatchmakingMethod = {}));
|
|
@@ -9,3 +9,13 @@ export interface IncomingLike extends Like {
|
|
|
9
9
|
seen: boolean;
|
|
10
10
|
thumbnailBlurred?: string;
|
|
11
11
|
}
|
|
12
|
+
export interface OutgoingLikeProfile {
|
|
13
|
+
firstName?: string;
|
|
14
|
+
age?: number;
|
|
15
|
+
thumbnail?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface OutgoingLike {
|
|
18
|
+
userId: string;
|
|
19
|
+
likedAt: string;
|
|
20
|
+
profile: OutgoingLikeProfile;
|
|
21
|
+
}
|
|
@@ -6,7 +6,7 @@ import { MatchableUser, MatchCheck } from "./matchmaking.types";
|
|
|
6
6
|
import { Message } from "./message.types";
|
|
7
7
|
import { StripeProduct } from "./stripe.types";
|
|
8
8
|
import { User } from "./user.types";
|
|
9
|
-
import { IncomingLike } from "./like.types";
|
|
9
|
+
import { IncomingLike, OutgoingLike } from "./like.types";
|
|
10
10
|
import { CA } from "./ca.types";
|
|
11
11
|
import { SelfAwareness } from "./sa.types";
|
|
12
12
|
import { PLSScore } from "./pls.types";
|
|
@@ -62,6 +62,7 @@ export type GetMatchableUserResponse = MatchableUser;
|
|
|
62
62
|
export type GetMatchableUsersResponse = MatchableUser[];
|
|
63
63
|
export type CreateLikeResponse = void;
|
|
64
64
|
export type GetLikesResponse = IncomingLike[];
|
|
65
|
+
export type GetOutgoingLikesResponse = OutgoingLike[];
|
|
65
66
|
export type HandleLikeSeenResponse = void;
|
|
66
67
|
export type SubmitPLSDemographicsResponse = void;
|
|
67
68
|
export type CreatePLSInputResponse = void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Country, Gender, MatchmakingMode, NotificationSetting, Theme, UserLanguage } from "../enum";
|
|
1
|
+
import { Country, Gender, MatchmakingMethod, MatchmakingMode, NotificationSetting, Theme, UserLanguage } from "../enum";
|
|
2
2
|
export type User = {
|
|
3
3
|
id: string;
|
|
4
4
|
email: string;
|
|
@@ -66,4 +66,5 @@ export type DatingPreferences = {
|
|
|
66
66
|
maxAge?: number;
|
|
67
67
|
interestedIn: Gender[];
|
|
68
68
|
distanceRadius: number;
|
|
69
|
+
matchmakingMethod?: MatchmakingMethod;
|
|
69
70
|
};
|
package/package.json
CHANGED
package/src/types/like.types.ts
CHANGED
|
@@ -11,3 +11,15 @@ export interface IncomingLike extends Like {
|
|
|
11
11
|
seen: boolean;
|
|
12
12
|
thumbnailBlurred?: string;
|
|
13
13
|
}
|
|
14
|
+
|
|
15
|
+
export interface OutgoingLikeProfile {
|
|
16
|
+
firstName?: string;
|
|
17
|
+
age?: number;
|
|
18
|
+
thumbnail?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface OutgoingLike {
|
|
22
|
+
userId: string;
|
|
23
|
+
likedAt: string;
|
|
24
|
+
profile: OutgoingLikeProfile;
|
|
25
|
+
}
|
|
@@ -9,7 +9,7 @@ import { MatchableUser, MatchCheck } from "./matchmaking.types";
|
|
|
9
9
|
import { Message } from "./message.types";
|
|
10
10
|
import { StripeProduct } from "./stripe.types";
|
|
11
11
|
import { User } from "./user.types";
|
|
12
|
-
import { IncomingLike } from "./like.types";
|
|
12
|
+
import { IncomingLike, OutgoingLike } from "./like.types";
|
|
13
13
|
import { CA } from "./ca.types";
|
|
14
14
|
import { SelfAwareness } from "./sa.types";
|
|
15
15
|
import { PLSScore } from "./pls.types";
|
|
@@ -92,6 +92,7 @@ export type GetMatchableUsersResponse = MatchableUser[];
|
|
|
92
92
|
// like
|
|
93
93
|
export type CreateLikeResponse = void;
|
|
94
94
|
export type GetLikesResponse = IncomingLike[];
|
|
95
|
+
export type GetOutgoingLikesResponse = OutgoingLike[];
|
|
95
96
|
export type HandleLikeSeenResponse = void;
|
|
96
97
|
|
|
97
98
|
// pls
|
package/src/types/user.types.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Country,
|
|
3
3
|
Gender,
|
|
4
|
+
MatchmakingMethod,
|
|
4
5
|
MatchmakingMode,
|
|
5
6
|
NotificationSetting,
|
|
6
7
|
Theme,
|
|
@@ -85,4 +86,5 @@ export type DatingPreferences = {
|
|
|
85
86
|
maxAge?: number;
|
|
86
87
|
interestedIn: Gender[];
|
|
87
88
|
distanceRadius: number;
|
|
89
|
+
matchmakingMethod?: MatchmakingMethod;
|
|
88
90
|
};
|