heartraite 1.0.148 → 1.0.150

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.
@@ -6,6 +6,7 @@ export declare enum CloudFunction {
6
6
  SUBMIT_FEEDBACK = "feedback/submit-feedback",
7
7
  GET_CA = "ca/get-ca",
8
8
  SUBMIT_ANSWER = "ca/submit-answer",
9
+ SEND_EVENT_FEEDBACK = "event/send-event-feedback",
9
10
  GET_EVENT_MATCH = "event/get-event-match",
10
11
  GET_USER_EVENTS = "event/get-user-events",
11
12
  JOIN_EVENT = "event/join-event",
@@ -10,6 +10,7 @@ var CloudFunction;
10
10
  CloudFunction["SUBMIT_FEEDBACK"] = "feedback/submit-feedback";
11
11
  CloudFunction["GET_CA"] = "ca/get-ca";
12
12
  CloudFunction["SUBMIT_ANSWER"] = "ca/submit-answer";
13
+ CloudFunction["SEND_EVENT_FEEDBACK"] = "event/send-event-feedback";
13
14
  CloudFunction["GET_EVENT_MATCH"] = "event/get-event-match";
14
15
  CloudFunction["GET_USER_EVENTS"] = "event/get-user-events";
15
16
  CloudFunction["JOIN_EVENT"] = "event/join-event";
@@ -1,6 +1,6 @@
1
1
  import { CloudFunction } from "../enum";
2
- import { AddImagesRequest, AuthenticateBankIDRequest, CollectBankIDRequest, CreateBillingPortalRequest, CreateCheckoutSessionRequest, CreateLikeRequest, CreatePLSInputRequest, CreatePLSSubmissionRequest, CreateReportRequest, DeleteUserRequest, GetCARequest, GetLikesRequest, GetMatchableUserRequest, GetMatchCheckRequest, GetMatchesRequest, GetAdvancedMatchRequest, GetMessagesRequest, GetPLSSubmissionRequest, GetProductsRequest, GetSelfAwarenessRequest, GetUserRequest, HandleLastMessageSeenRequest, HandleLikeSeenRequest, HandleMatchSeenRequest, RegisterOnboardingRequest, RegisterUserRequest, RemoveMatchRequest, SendMessageRequest, SubmitAnswerRequest, SubmitCategoryFeedbackRequest, SubmitPLSCategoryFeedbackRequest, SubmitPLSDemographicsRequest, UpdatePLSAnswerRequest, UpdateQuestionsRequest, UpdateUserRequest, SubmitFeedbackRequest, SyncAffiliateRequest, JoinEventRequest, GetEventRequest, GetEventMatchRequest } from "./request.types";
3
- import { AddImagesResponse, AuthenticateBankIDResponse, CollectBankIDResponse, CreateBillingPortalResponse, CreateCheckoutSessionResponse, CreateLikeResponse, CreatePLSInputResponse, CreatePLSSubmissionResponse, CreateReportResponse, DeleteUserResponse, GetCAResponse, GetLikesResponse, GetMatchableUserResponse, GetMatchableUsersResponse, GetMatchCheckResponse, GetMatchesResponse, GetAdvancedMatchResponse, GetMessagesResponse, GetPLSSubmissionResponse, GetProductsResponse, GetSelfAwarenessReponse, GetUserResponse, HandleLastMessageSeenResponse, HandleLikeSeenResponse, HandleMatchSeenResponse, RegisterOnboardingResponse, RegisterUserResponse, RemoveMatchResponse, SendMessageResponse, SubmitAnswerResponse, SubmitCategoryFeedbackResponse, SubmitPLSCategoryFeedbackResponse, SubmitPLSDemographicsResponse, UpdatePLSAnswerResponse, UpdateQuestionsResponse, UpdateUserResponse, SubmitFeedbackResponse, SyncAffiliateResponse, GetUserEventsResponse, JoinEventResponse, GetEventResponse, GetEventMatchResponse } from "./response.types";
2
+ import { AddImagesRequest, AuthenticateBankIDRequest, CollectBankIDRequest, CreateBillingPortalRequest, CreateCheckoutSessionRequest, CreateLikeRequest, CreatePLSInputRequest, CreatePLSSubmissionRequest, CreateReportRequest, DeleteUserRequest, GetCARequest, GetLikesRequest, GetMatchableUserRequest, GetMatchCheckRequest, GetMatchesRequest, GetAdvancedMatchRequest, GetMessagesRequest, GetPLSSubmissionRequest, GetProductsRequest, GetSelfAwarenessRequest, GetUserRequest, HandleLastMessageSeenRequest, HandleLikeSeenRequest, HandleMatchSeenRequest, RegisterOnboardingRequest, RegisterUserRequest, RemoveMatchRequest, SendMessageRequest, SubmitAnswerRequest, SubmitCategoryFeedbackRequest, SubmitPLSCategoryFeedbackRequest, SubmitPLSDemographicsRequest, UpdatePLSAnswerRequest, UpdateQuestionsRequest, UpdateUserRequest, SubmitFeedbackRequest, SyncAffiliateRequest, JoinEventRequest, GetEventRequest, GetEventMatchRequest, SendEventFeedbackRequest } from "./request.types";
3
+ import { AddImagesResponse, AuthenticateBankIDResponse, CollectBankIDResponse, CreateBillingPortalResponse, CreateCheckoutSessionResponse, CreateLikeResponse, CreatePLSInputResponse, CreatePLSSubmissionResponse, CreateReportResponse, DeleteUserResponse, GetCAResponse, GetLikesResponse, GetMatchableUserResponse, GetMatchableUsersResponse, GetMatchCheckResponse, GetMatchesResponse, GetAdvancedMatchResponse, GetMessagesResponse, GetPLSSubmissionResponse, GetProductsResponse, GetSelfAwarenessReponse, GetUserResponse, HandleLastMessageSeenResponse, HandleLikeSeenResponse, HandleMatchSeenResponse, RegisterOnboardingResponse, RegisterUserResponse, RemoveMatchResponse, SendMessageResponse, SubmitAnswerResponse, SubmitCategoryFeedbackResponse, SubmitPLSCategoryFeedbackResponse, SubmitPLSDemographicsResponse, UpdatePLSAnswerResponse, UpdateQuestionsResponse, UpdateUserResponse, SubmitFeedbackResponse, SyncAffiliateResponse, GetUserEventsResponse, JoinEventResponse, GetEventResponse, GetEventMatchResponse, SendEventFeedbackResponse } from "./response.types";
4
4
  export type CloudFunctionTypes = {
5
5
  [CloudFunction.SYNC_AFFILIATE]: {
6
6
  payload: SyncAffiliateRequest;
@@ -30,6 +30,10 @@ export type CloudFunctionTypes = {
30
30
  payload: SubmitCategoryFeedbackRequest;
31
31
  response: SubmitCategoryFeedbackResponse;
32
32
  };
33
+ [CloudFunction.SEND_EVENT_FEEDBACK]: {
34
+ payload: SendEventFeedbackRequest;
35
+ response: SendEventFeedbackResponse;
36
+ };
33
37
  [CloudFunction.GET_EVENT_MATCH]: {
34
38
  payload: GetEventMatchRequest;
35
39
  response: GetEventMatchResponse;
@@ -65,5 +65,23 @@ export type FullEvent = Omit<Event, "participants"> & {
65
65
  participants: FullParticipant[];
66
66
  matchStats?: EventMatchStats;
67
67
  summaries: Record<UserId, CompatibilitySummary>;
68
+ unmatchedParticipants: FullParticipant[];
69
+ };
70
+ export type EventFeedback = {
71
+ id: string;
72
+ userId: string;
73
+ eventId: string;
74
+ created: string;
75
+ ratings: {
76
+ overall: number;
77
+ matchQuality: number;
78
+ appExperience: number;
79
+ };
80
+ textFeedback: {
81
+ likedMost: string;
82
+ improvement: string;
83
+ };
84
+ followUpInterest: boolean;
85
+ version: string;
68
86
  };
69
87
  export {};
@@ -27,6 +27,19 @@ export type AuthenticateBankIDRequest = undefined;
27
27
  export type CollectBankIDRequest = {
28
28
  orderRef: string;
29
29
  };
30
+ export type SendEventFeedbackRequest = {
31
+ eventId: string;
32
+ ratings: {
33
+ overall: number;
34
+ matchQuality: number;
35
+ appExperience: number;
36
+ };
37
+ textFeedback: {
38
+ likedMost: string;
39
+ improvement: string;
40
+ };
41
+ followUpInterest: boolean;
42
+ };
30
43
  export type GetEventMatchRequest = {
31
44
  eventId: string;
32
45
  };
@@ -32,6 +32,7 @@ export type SubmitAnswerResponse = {
32
32
  categoryEvaluation?: CategoryEvaluation;
33
33
  };
34
34
  export type SubmitCategoryFeedbackResponse = CategoryEvaluation;
35
+ export type SendEventFeedbackResponse = void;
35
36
  export type GetEventMatchResponse = FullParticipantWithCS;
36
37
  export type GetUserEventsResponse = Event[];
37
38
  export type JoinEventResponse = Event;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heartraite",
3
- "version": "1.0.148",
3
+ "version": "1.0.150",
4
4
  "description": "Heartraite npm package for common functionality",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -6,6 +6,7 @@ export enum CloudFunction {
6
6
  SUBMIT_FEEDBACK = "feedback/submit-feedback",
7
7
  GET_CA = "ca/get-ca",
8
8
  SUBMIT_ANSWER = "ca/submit-answer",
9
+ SEND_EVENT_FEEDBACK = "event/send-event-feedback",
9
10
  GET_EVENT_MATCH = "event/get-event-match",
10
11
  GET_USER_EVENTS = "event/get-user-events",
11
12
  JOIN_EVENT = "event/join-event",
@@ -40,6 +40,7 @@ import {
40
40
  JoinEventRequest,
41
41
  GetEventRequest,
42
42
  GetEventMatchRequest,
43
+ SendEventFeedbackRequest,
43
44
  } from "./request.types";
44
45
  import {
45
46
  AddImagesResponse,
@@ -84,6 +85,7 @@ import {
84
85
  JoinEventResponse,
85
86
  GetEventResponse,
86
87
  GetEventMatchResponse,
88
+ SendEventFeedbackResponse,
87
89
  } from "./response.types";
88
90
 
89
91
  // Define a mapping of Cloud Functions to payload and response types
@@ -124,6 +126,10 @@ export type CloudFunctionTypes = {
124
126
  };
125
127
 
126
128
  // event
129
+ [CloudFunction.SEND_EVENT_FEEDBACK]: {
130
+ payload: SendEventFeedbackRequest;
131
+ response: SendEventFeedbackResponse;
132
+ };
127
133
  [CloudFunction.GET_EVENT_MATCH]: {
128
134
  payload: GetEventMatchRequest;
129
135
  response: GetEventMatchResponse;
@@ -74,4 +74,23 @@ export type FullEvent = Omit<Event, "participants"> & {
74
74
  participants: FullParticipant[];
75
75
  matchStats?: EventMatchStats;
76
76
  summaries: Record<UserId, CompatibilitySummary>;
77
+ unmatchedParticipants: FullParticipant[];
78
+ };
79
+
80
+ export type EventFeedback = {
81
+ id: string;
82
+ userId: string;
83
+ eventId: string;
84
+ created: string;
85
+ ratings: {
86
+ overall: number;
87
+ matchQuality: number;
88
+ appExperience: number;
89
+ };
90
+ textFeedback: {
91
+ likedMost: string;
92
+ improvement: string;
93
+ };
94
+ followUpInterest: boolean;
95
+ version: string;
77
96
  };
@@ -50,6 +50,20 @@ export type CollectBankIDRequest = {
50
50
  };
51
51
 
52
52
  // event
53
+ export type SendEventFeedbackRequest = {
54
+ eventId: string;
55
+ ratings: {
56
+ overall: number;
57
+ matchQuality: number;
58
+ appExperience: number;
59
+ };
60
+ textFeedback: {
61
+ likedMost: string;
62
+ improvement: string;
63
+ };
64
+ followUpInterest: boolean;
65
+ };
66
+
53
67
  export type GetEventMatchRequest = {
54
68
  eventId: string;
55
69
  };
@@ -43,6 +43,7 @@ export type SubmitAnswerResponse = {
43
43
  export type SubmitCategoryFeedbackResponse = CategoryEvaluation;
44
44
 
45
45
  // event
46
+ export type SendEventFeedbackResponse = void;
46
47
  export type GetEventMatchResponse = FullParticipantWithCS;
47
48
  export type GetUserEventsResponse = Event[];
48
49
  export type JoinEventResponse = Event;