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.
@@ -1,2 +1,2 @@
1
- import { MatchmakingVisibility } from "src/enum";
2
- export declare const MATCHMAKING_VISIBILITY_OPTIONS: MatchmakingVisibility[];
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.MATCHMAKING_VISIBILITY_OPTIONS = void 0;
3
+ exports.MATCHMAKING_MODES = void 0;
4
4
  const enum_1 = require("src/enum");
5
- exports.MATCHMAKING_VISIBILITY_OPTIONS = Object.values(enum_1.MatchmakingVisibility);
5
+ exports.MATCHMAKING_MODES = Object.values(enum_1.MatchmakingMode);
@@ -1,4 +1,4 @@
1
- export declare enum MatchmakingVisibility {
2
- VISIBLE = "visible",
3
- HIDDEN = "hidden"
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.MatchmakingVisibility = void 0;
4
- var MatchmakingVisibility;
5
- (function (MatchmakingVisibility) {
6
- MatchmakingVisibility["VISIBLE"] = "visible";
7
- MatchmakingVisibility["HIDDEN"] = "hidden";
8
- })(MatchmakingVisibility || (exports.MatchmakingVisibility = MatchmakingVisibility = {}));
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.75",
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,5 +1,3 @@
1
- import { MatchmakingVisibility } from "src/enum";
1
+ import { MatchmakingMode } from "src/enum";
2
2
 
3
- export const MATCHMAKING_VISIBILITY_OPTIONS = Object.values(
4
- MatchmakingVisibility
5
- );
3
+ export const MATCHMAKING_MODES = Object.values(MatchmakingMode);
@@ -1,4 +1,4 @@
1
- export enum MatchmakingVisibility {
2
- VISIBLE = "visible",
3
- HIDDEN = "hidden",
1
+ export enum MatchmakingMode {
2
+ ACTIVE = "active",
3
+ PAUSED = "paused",
4
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[];