heartraite 1.0.72 → 1.0.73

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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heartraite",
3
- "version": "1.0.72",
3
+ "version": "1.0.73",
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
+ }
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