heartraite 1.0.181 → 1.0.183

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,3 +1,4 @@
1
+ import { LoveLanguages, Personality } from "./ca.types";
1
2
  export type AMDatingSuggestions = {
2
3
  summary: string;
3
4
  suggestions: AMDatingSuggestion[];
@@ -68,6 +69,7 @@ export type AMStrengthsAndChallenges = {
68
69
  strengths: AMStrength[];
69
70
  challenges: AMChallenge[];
70
71
  };
72
+ type UserId = string;
71
73
  export type AdvancedMatch = {
72
74
  id: string;
73
75
  matchId: string;
@@ -79,5 +81,10 @@ export type AdvancedMatch = {
79
81
  personality: AMPersonality;
80
82
  loveLanguages: AMLoveLanguages;
81
83
  interestActivity: AMInterestActivity;
84
+ scores: Record<UserId, {
85
+ personality: Personality;
86
+ loveLanguages: LoveLanguages;
87
+ }>;
82
88
  processing?: boolean;
83
89
  };
90
+ export {};
@@ -55,15 +55,23 @@ export type EventMatchPair = {
55
55
  userB: FullParticipant;
56
56
  score: number;
57
57
  };
58
+ export type EventMatch = {
59
+ id: string;
60
+ eventId: string;
61
+ userAId: string;
62
+ userBId: string;
63
+ score: number;
64
+ created: string;
65
+ };
58
66
  export type EventMatchStats = {
59
67
  lastCalculated: string;
60
68
  totalPairs: number;
61
- topMatches: EventMatchPair[];
62
69
  averageCompatibility: number;
63
70
  excludedParticipantIds: string[];
64
71
  };
65
72
  export type FullEvent = Omit<Event, "participants"> & {
66
73
  participants: FullParticipant[];
74
+ matches: EventMatch[];
67
75
  matchStats?: EventMatchStats;
68
76
  summaries: Record<UserId, CompatibilitySummary>;
69
77
  unmatchedParticipants: FullParticipant[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heartraite",
3
- "version": "1.0.181",
3
+ "version": "1.0.183",
4
4
  "description": "Heartraite npm package for common functionality",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,3 +1,4 @@
1
+ import { LoveLanguages, Personality } from "./ca.types";
1
2
 
2
3
  export type AMDatingSuggestions = {
3
4
  summary: string;
@@ -83,6 +84,8 @@ export type AMStrengthsAndChallenges = {
83
84
  challenges: AMChallenge[];
84
85
  };
85
86
 
87
+ type UserId = string;
88
+
86
89
  export type AdvancedMatch = {
87
90
  id: string;
88
91
  matchId: string;
@@ -94,5 +97,12 @@ export type AdvancedMatch = {
94
97
  personality: AMPersonality;
95
98
  loveLanguages: AMLoveLanguages;
96
99
  interestActivity: AMInterestActivity;
100
+ scores: Record<
101
+ UserId,
102
+ {
103
+ personality: Personality;
104
+ loveLanguages: LoveLanguages;
105
+ }
106
+ >;
97
107
  processing?: boolean;
98
108
  };
@@ -63,16 +63,25 @@ export type EventMatchPair = {
63
63
  score: number;
64
64
  };
65
65
 
66
+ export type EventMatch = {
67
+ id: string;
68
+ eventId: string;
69
+ userAId: string;
70
+ userBId: string;
71
+ score: number;
72
+ created: string;
73
+ };
74
+
66
75
  export type EventMatchStats = {
67
76
  lastCalculated: string;
68
77
  totalPairs: number;
69
- topMatches: EventMatchPair[];
70
78
  averageCompatibility: number;
71
79
  excludedParticipantIds: string[];
72
80
  };
73
81
 
74
82
  export type FullEvent = Omit<Event, "participants"> & {
75
83
  participants: FullParticipant[];
84
+ matches: EventMatch[];
76
85
  matchStats?: EventMatchStats;
77
86
  summaries: Record<UserId, CompatibilitySummary>;
78
87
  unmatchedParticipants: FullParticipant[];