heartraite 1.0.201 → 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.
@@ -5,3 +5,7 @@ export declare enum MatchmakingMode {
5
5
  IN_EVENT = "in_event",
6
6
  PENDING = "pending"
7
7
  }
8
+ export declare enum MatchmakingMethod {
9
+ GPS = "gps",
10
+ REGION = "region"
11
+ }
@@ -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 = {}));
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heartraite",
3
- "version": "1.0.201",
3
+ "version": "1.0.202",
4
4
  "description": "Heartraite npm package for common functionality",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -7,3 +7,8 @@ export enum MatchmakingMode {
7
7
  // (photo review flips PENDING -> ACTIVE). Excluded from the feed exactly like PAUSED/DISABLED.
8
8
  PENDING = "pending",
9
9
  }
10
+
11
+ export enum MatchmakingMethod {
12
+ GPS = "gps",
13
+ REGION = "region",
14
+ }
@@ -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
  };