heartraite 1.0.199 → 1.0.201

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.
@@ -9,3 +9,13 @@ export interface IncomingLike extends Like {
9
9
  seen: boolean;
10
10
  thumbnailBlurred?: string;
11
11
  }
12
+ export interface OutgoingLikeProfile {
13
+ firstName?: string;
14
+ age?: number;
15
+ thumbnail?: string;
16
+ }
17
+ export interface OutgoingLike {
18
+ userId: string;
19
+ likedAt: string;
20
+ profile: OutgoingLikeProfile;
21
+ }
@@ -1,8 +1,27 @@
1
1
  import { LikeType } from "../enum";
2
2
  import { UserProfile } from "./user.types";
3
+ export type CategoryInsight = {
4
+ /** Matches a `CompatibilityCategory.categoryId` (values | personality | communication | lifestyle | love). */
5
+ categoryId: string;
6
+ /** Match-specific, LLM-generated insight for this category, in the generation locale. */
7
+ text: string;
8
+ };
3
9
  export type CompatibilitySummary = {
4
10
  summary: string;
5
11
  highlights: string[];
12
+ /**
13
+ * Per-category, match-specific insight text — one entry per compatibility
14
+ * category, grounded in that category's score. Optional so records
15
+ * generated before this field still parse; consumers fall back to the
16
+ * static per-category description when an entry is missing.
17
+ */
18
+ categoryInsights?: CategoryInsight[];
19
+ /**
20
+ * Schema version of the generated summary. Absent on records generated
21
+ * before `categoryInsights` existed; lets callers tell text-less legacy
22
+ * summaries apart from freshly generated ones.
23
+ */
24
+ version?: number;
6
25
  };
7
26
  export type MatchAttributes = {
8
27
  distance?: number;
@@ -6,7 +6,7 @@ import { MatchableUser, MatchCheck } from "./matchmaking.types";
6
6
  import { Message } from "./message.types";
7
7
  import { StripeProduct } from "./stripe.types";
8
8
  import { User } from "./user.types";
9
- import { IncomingLike } from "./like.types";
9
+ import { IncomingLike, OutgoingLike } from "./like.types";
10
10
  import { CA } from "./ca.types";
11
11
  import { SelfAwareness } from "./sa.types";
12
12
  import { PLSScore } from "./pls.types";
@@ -62,6 +62,7 @@ export type GetMatchableUserResponse = MatchableUser;
62
62
  export type GetMatchableUsersResponse = MatchableUser[];
63
63
  export type CreateLikeResponse = void;
64
64
  export type GetLikesResponse = IncomingLike[];
65
+ export type GetOutgoingLikesResponse = OutgoingLike[];
65
66
  export type HandleLikeSeenResponse = void;
66
67
  export type SubmitPLSDemographicsResponse = void;
67
68
  export type CreatePLSInputResponse = void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heartraite",
3
- "version": "1.0.199",
3
+ "version": "1.0.201",
4
4
  "description": "Heartraite npm package for common functionality",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,3 +11,15 @@ export interface IncomingLike extends Like {
11
11
  seen: boolean;
12
12
  thumbnailBlurred?: string;
13
13
  }
14
+
15
+ export interface OutgoingLikeProfile {
16
+ firstName?: string;
17
+ age?: number;
18
+ thumbnail?: string;
19
+ }
20
+
21
+ export interface OutgoingLike {
22
+ userId: string;
23
+ likedAt: string;
24
+ profile: OutgoingLikeProfile;
25
+ }
@@ -1,9 +1,29 @@
1
1
  import { LikeType } from "../enum";
2
2
  import { UserProfile } from "./user.types";
3
3
 
4
+ export type CategoryInsight = {
5
+ /** Matches a `CompatibilityCategory.categoryId` (values | personality | communication | lifestyle | love). */
6
+ categoryId: string;
7
+ /** Match-specific, LLM-generated insight for this category, in the generation locale. */
8
+ text: string;
9
+ };
10
+
4
11
  export type CompatibilitySummary = {
5
12
  summary: string;
6
13
  highlights: string[];
14
+ /**
15
+ * Per-category, match-specific insight text — one entry per compatibility
16
+ * category, grounded in that category's score. Optional so records
17
+ * generated before this field still parse; consumers fall back to the
18
+ * static per-category description when an entry is missing.
19
+ */
20
+ categoryInsights?: CategoryInsight[];
21
+ /**
22
+ * Schema version of the generated summary. Absent on records generated
23
+ * before `categoryInsights` existed; lets callers tell text-less legacy
24
+ * summaries apart from freshly generated ones.
25
+ */
26
+ version?: number;
7
27
  };
8
28
 
9
29
  export type MatchAttributes = {
@@ -9,7 +9,7 @@ import { MatchableUser, MatchCheck } from "./matchmaking.types";
9
9
  import { Message } from "./message.types";
10
10
  import { StripeProduct } from "./stripe.types";
11
11
  import { User } from "./user.types";
12
- import { IncomingLike } from "./like.types";
12
+ import { IncomingLike, OutgoingLike } from "./like.types";
13
13
  import { CA } from "./ca.types";
14
14
  import { SelfAwareness } from "./sa.types";
15
15
  import { PLSScore } from "./pls.types";
@@ -92,6 +92,7 @@ export type GetMatchableUsersResponse = MatchableUser[];
92
92
  // like
93
93
  export type CreateLikeResponse = void;
94
94
  export type GetLikesResponse = IncomingLike[];
95
+ export type GetOutgoingLikesResponse = OutgoingLike[];
95
96
  export type HandleLikeSeenResponse = void;
96
97
 
97
98
  // pls