heartraite 1.0.72 → 1.0.74

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.
@@ -4,3 +4,8 @@ export declare enum LikeType {
4
4
  PULSE = "pulse",
5
5
  REVERTED = "reverted"
6
6
  }
7
+ export declare enum LikeStatus {
8
+ PENDING = "pending",
9
+ MATCHED = "matched",
10
+ REJECTED = "rejected"
11
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LikeType = void 0;
3
+ exports.LikeStatus = exports.LikeType = void 0;
4
4
  var LikeType;
5
5
  (function (LikeType) {
6
6
  LikeType["LIKE"] = "like";
@@ -8,3 +8,9 @@ var LikeType;
8
8
  LikeType["PULSE"] = "pulse";
9
9
  LikeType["REVERTED"] = "reverted";
10
10
  })(LikeType || (exports.LikeType = LikeType = {}));
11
+ var LikeStatus;
12
+ (function (LikeStatus) {
13
+ LikeStatus["PENDING"] = "pending";
14
+ LikeStatus["MATCHED"] = "matched";
15
+ LikeStatus["REJECTED"] = "rejected";
16
+ })(LikeStatus || (exports.LikeStatus = LikeStatus = {}));
@@ -1,8 +1,11 @@
1
- import { LikeType } from "../enum";
1
+ import { LikeStatus, LikeType } from "../enum";
2
2
  export type Like = {
3
3
  userId: string;
4
- thumbnailBlurred?: string;
5
- seen: boolean;
6
4
  created: string;
7
5
  type: LikeType;
8
6
  };
7
+ export interface IncomingLike extends Like {
8
+ status: LikeStatus;
9
+ seen: boolean;
10
+ thumbnailBlurred?: string;
11
+ }
@@ -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.72",
3
+ "version": "1.0.74",
4
4
  "description": "Heartraite npm package for common functionality",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
Binary file
Binary file
@@ -4,3 +4,9 @@ export enum LikeType {
4
4
  PULSE = "pulse",
5
5
  REVERTED = "reverted",
6
6
  }
7
+
8
+ export enum LikeStatus {
9
+ PENDING = "pending",
10
+ MATCHED = "matched",
11
+ REJECTED = "rejected",
12
+ }
@@ -1,9 +1,13 @@
1
- import { LikeType } from "../enum";
1
+ import { LikeStatus, LikeType } from "../enum";
2
2
 
3
3
  export type Like = {
4
4
  userId: string;
5
- thumbnailBlurred?: string;
6
- seen: boolean;
7
5
  created: string;
8
6
  type: LikeType;
9
7
  };
8
+
9
+ export interface IncomingLike extends Like {
10
+ status: LikeStatus;
11
+ seen: boolean;
12
+ thumbnailBlurred?: string;
13
+ }
@@ -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
package/tsconfig.json CHANGED
@@ -7,10 +7,8 @@
7
7
  "moduleResolution": "node",
8
8
  "module": "CommonJS",
9
9
  "target": "ES2021",
10
- "strict": true
10
+ "strict": true,
11
11
  },
12
- "include": [
13
- "src/**/*.ts"
14
- ]
12
+ "include": ["src"]
15
13
  }
16
14