heartraite 1.0.73 → 1.0.75

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 { MatchmakingVisibility } from "src/enum";
2
+ export declare const MATCHMAKING_VISIBILITY_OPTIONS: MatchmakingVisibility[];
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MATCHMAKING_VISIBILITY_OPTIONS = void 0;
4
+ const enum_1 = require("src/enum");
5
+ exports.MATCHMAKING_VISIBILITY_OPTIONS = Object.values(enum_1.MatchmakingVisibility);
@@ -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 MatchmakingVisibility {
2
+ VISIBLE = "visible",
3
+ HIDDEN = "hidden"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
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 = {}));
@@ -4,7 +4,7 @@ import { MatchableUser, MatchCheck } from "./matchmaking.types";
4
4
  import { Message } from "./message.types";
5
5
  import { StripeProduct } from "./stripe.types";
6
6
  import { User } from "./user.types";
7
- import { Like } from "./like.types";
7
+ import { IncomingLike } from "./like.types";
8
8
  import { CA } from "./ca.types";
9
9
  import { SelfAwareness } from "./sa.types";
10
10
  import { PLSScore } from "./pls.types";
@@ -39,7 +39,7 @@ export type GetMatchesResponse = UserMatch[];
39
39
  export type GetMatchableUserResponse = MatchableUser;
40
40
  export type GetMatchableUsersResponse = MatchableUser[];
41
41
  export type CreateLikeResponse = void;
42
- export type GetLikesResponse = Like[];
42
+ export type GetLikesResponse = IncomingLike[];
43
43
  export type HandleLikeSeenResponse = void;
44
44
  export type SubmitPLSDemographicsResponse = void;
45
45
  export type CreatePLSInputResponse = void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heartraite",
3
- "version": "1.0.73",
3
+ "version": "1.0.75",
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,5 @@
1
+ import { MatchmakingVisibility } from "src/enum";
2
+
3
+ export const MATCHMAKING_VISIBILITY_OPTIONS = Object.values(
4
+ MatchmakingVisibility
5
+ );
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 MatchmakingVisibility {
2
+ VISIBLE = "visible",
3
+ HIDDEN = "hidden",
4
+ }
@@ -4,7 +4,7 @@ import { MatchableUser, MatchCheck } from "./matchmaking.types";
4
4
  import { Message } from "./message.types";
5
5
  import { StripeProduct } from "./stripe.types";
6
6
  import { User } from "./user.types";
7
- import { Like } from "./like.types";
7
+ import { IncomingLike } from "./like.types";
8
8
  import { CA } from "./ca.types";
9
9
  import { SelfAwareness } from "./sa.types";
10
10
  import { PLSScore } from "./pls.types";
@@ -52,7 +52,7 @@ export type GetMatchableUsersResponse = MatchableUser[];
52
52
 
53
53
  // like
54
54
  export type CreateLikeResponse = void;
55
- export type GetLikesResponse = Like[];
55
+ export type GetLikesResponse = IncomingLike[];
56
56
  export type HandleLikeSeenResponse = void;
57
57
 
58
58
  // pls