heartraite 1.0.201 → 1.0.203

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,13 @@ 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
+ }
12
+ export declare enum ProfileDisabledReason {
13
+ PHOTO = "photo",
14
+ FIRST_NAME = "first_name",
15
+ PROFILE_TEXT = "profile_text",
16
+ OTHER = "other"
17
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MatchmakingMode = void 0;
3
+ exports.ProfileDisabledReason = exports.MatchmakingMethod = exports.MatchmakingMode = void 0;
4
4
  var MatchmakingMode;
5
5
  (function (MatchmakingMode) {
6
6
  MatchmakingMode["ACTIVE"] = "active";
@@ -11,3 +11,15 @@ 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 = {}));
19
+ var ProfileDisabledReason;
20
+ (function (ProfileDisabledReason) {
21
+ ProfileDisabledReason["PHOTO"] = "photo";
22
+ ProfileDisabledReason["FIRST_NAME"] = "first_name";
23
+ ProfileDisabledReason["PROFILE_TEXT"] = "profile_text";
24
+ ProfileDisabledReason["OTHER"] = "other";
25
+ })(ProfileDisabledReason || (exports.ProfileDisabledReason = ProfileDisabledReason = {}));
@@ -1,4 +1,4 @@
1
- import { Country, Gender, MatchmakingMode, NotificationSetting, Theme, UserLanguage } from "../enum";
1
+ import { Country, Gender, MatchmakingMethod, MatchmakingMode, NotificationSetting, ProfileDisabledReason, Theme, UserLanguage } from "../enum";
2
2
  export type User = {
3
3
  id: string;
4
4
  email: string;
@@ -66,4 +66,6 @@ export type DatingPreferences = {
66
66
  maxAge?: number;
67
67
  interestedIn: Gender[];
68
68
  distanceRadius: number;
69
+ matchmakingMethod?: MatchmakingMethod;
70
+ disabledReasons?: ProfileDisabledReason[];
69
71
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heartraite",
3
- "version": "1.0.201",
3
+ "version": "1.0.203",
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,15 @@ 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
+ }
15
+
16
+ export enum ProfileDisabledReason {
17
+ PHOTO = "photo",
18
+ FIRST_NAME = "first_name",
19
+ PROFILE_TEXT = "profile_text",
20
+ OTHER = "other",
21
+ }
@@ -1,8 +1,10 @@
1
1
  import {
2
2
  Country,
3
3
  Gender,
4
+ MatchmakingMethod,
4
5
  MatchmakingMode,
5
6
  NotificationSetting,
7
+ ProfileDisabledReason,
6
8
  Theme,
7
9
  UserLanguage,
8
10
  } from "../enum";
@@ -85,4 +87,6 @@ export type DatingPreferences = {
85
87
  maxAge?: number;
86
88
  interestedIn: Gender[];
87
89
  distanceRadius: number;
90
+ matchmakingMethod?: MatchmakingMethod;
91
+ disabledReasons?: ProfileDisabledReason[];
88
92
  };