heartraite 1.0.74 → 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.
@@ -1 +1,2 @@
1
1
  export * from "./user.constants";
2
+ export * from "./matchmaking.constants";
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./user.constants"), exports);
18
+ __exportStar(require("./matchmaking.constants"), exports);
@@ -0,0 +1,2 @@
1
+ import { MatchmakingMode } from "src/enum";
2
+ export declare const MATCHMAKING_MODES: MatchmakingMode[];
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MATCHMAKING_MODES = void 0;
4
+ const enum_1 = require("src/enum");
5
+ exports.MATCHMAKING_MODES = Object.values(enum_1.MatchmakingMode);
@@ -10,5 +10,6 @@ export * from "./gender.enum";
10
10
  export * from "./pls.enum";
11
11
  export * from "./provider.enum";
12
12
  export * from "./state.enum";
13
+ export * from "./matchmaking.enum";
13
14
  export * from "./notification.enum";
14
15
  export * from "./user.enum";
@@ -26,5 +26,6 @@ __exportStar(require("./gender.enum"), exports);
26
26
  __exportStar(require("./pls.enum"), exports);
27
27
  __exportStar(require("./provider.enum"), exports);
28
28
  __exportStar(require("./state.enum"), exports);
29
+ __exportStar(require("./matchmaking.enum"), exports);
29
30
  __exportStar(require("./notification.enum"), exports);
30
31
  __exportStar(require("./user.enum"), exports);
@@ -0,0 +1,4 @@
1
+ export declare enum MatchmakingMode {
2
+ ACTIVE = "active",
3
+ PAUSED = "paused"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
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,6 +1,6 @@
1
1
  {
2
2
  "name": "heartraite",
3
- "version": "1.0.74",
3
+ "version": "1.0.76",
4
4
  "description": "Heartraite npm package for common functionality",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1 +1,2 @@
1
1
  export * from "./user.constants";
2
+ export * from "./matchmaking.constants";
@@ -0,0 +1,3 @@
1
+ import { MatchmakingMode } from "src/enum";
2
+
3
+ export const MATCHMAKING_MODES = Object.values(MatchmakingMode);
package/src/enum/index.ts CHANGED
@@ -10,5 +10,6 @@ export * from "./gender.enum";
10
10
  export * from "./pls.enum";
11
11
  export * from "./provider.enum";
12
12
  export * from "./state.enum";
13
+ export * from "./matchmaking.enum";
13
14
  export * from "./notification.enum";
14
15
  export * from "./user.enum";
@@ -0,0 +1,4 @@
1
+ export enum MatchmakingMode {
2
+ ACTIVE = "active",
3
+ PAUSED = "paused",
4
+ }
@@ -1,4 +1,9 @@
1
- import { Gender, NotificationSetting, UserLanguage } from "../enum";
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[];