heartraite 1.0.75 → 1.0.76
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/constants/matchmaking.constants.d.ts +2 -2
- package/dist/constants/matchmaking.constants.js +2 -2
- package/dist/enum/matchmaking.enum.d.ts +3 -3
- package/dist/enum/matchmaking.enum.js +6 -6
- package/dist/types/user.types.d.ts +2 -1
- package/package.json +1 -1
- package/src/constants/matchmaking.constants.ts +2 -4
- package/src/enum/matchmaking.enum.ts +3 -3
- package/src/types/user.types.ts +7 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const
|
|
1
|
+
import { MatchmakingMode } from "src/enum";
|
|
2
|
+
export declare const MATCHMAKING_MODES: MatchmakingMode[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.MATCHMAKING_MODES = void 0;
|
|
4
4
|
const enum_1 = require("src/enum");
|
|
5
|
-
exports.
|
|
5
|
+
exports.MATCHMAKING_MODES = Object.values(enum_1.MatchmakingMode);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare enum
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export declare enum MatchmakingMode {
|
|
2
|
+
ACTIVE = "active",
|
|
3
|
+
PAUSED = "paused"
|
|
4
4
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
5
|
-
(function (
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
})(
|
|
3
|
+
exports.MatchmakingMode = void 0;
|
|
4
|
+
var MatchmakingMode;
|
|
5
|
+
(function (MatchmakingMode) {
|
|
6
|
+
MatchmakingMode["ACTIVE"] = "active";
|
|
7
|
+
MatchmakingMode["PAUSED"] = "paused";
|
|
8
|
+
})(MatchmakingMode || (exports.MatchmakingMode = MatchmakingMode = {}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Gender, NotificationSetting, UserLanguage } from "../enum";
|
|
1
|
+
import { Gender, MatchmakingMode, NotificationSetting, UserLanguage } from "../enum";
|
|
2
2
|
export type User = {
|
|
3
3
|
id: string;
|
|
4
4
|
email: string;
|
|
@@ -41,6 +41,7 @@ export type UserNotifications = {
|
|
|
41
41
|
emailNotificationSettings: NotificationSettings;
|
|
42
42
|
};
|
|
43
43
|
export type DatingPreferences = {
|
|
44
|
+
mode: MatchmakingMode;
|
|
44
45
|
minAge: number;
|
|
45
46
|
maxAge: number;
|
|
46
47
|
interestedIn: Gender[];
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export enum
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export enum MatchmakingMode {
|
|
2
|
+
ACTIVE = "active",
|
|
3
|
+
PAUSED = "paused",
|
|
4
4
|
}
|
package/src/types/user.types.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
Gender,
|
|
3
|
+
MatchmakingMode,
|
|
4
|
+
NotificationSetting,
|
|
5
|
+
UserLanguage,
|
|
6
|
+
} from "../enum";
|
|
2
7
|
|
|
3
8
|
export type User = {
|
|
4
9
|
id: string;
|
|
@@ -49,6 +54,7 @@ export type UserNotifications = {
|
|
|
49
54
|
};
|
|
50
55
|
|
|
51
56
|
export type DatingPreferences = {
|
|
57
|
+
mode: MatchmakingMode;
|
|
52
58
|
minAge: number;
|
|
53
59
|
maxAge: number;
|
|
54
60
|
interestedIn: Gender[];
|