heartraite 1.0.152 → 1.0.154

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.
@@ -8,6 +8,7 @@ export declare enum CloudFunction {
8
8
  SUBMIT_ANSWER = "ca/submit-answer",
9
9
  SEND_EVENT_FEEDBACK = "event/send-event-feedback",
10
10
  GET_EVENT_MATCH = "event/get-event-match",
11
+ GET_EVENT_PARTICIPANTS = "event/get-event-participants",
11
12
  GET_USER_EVENTS = "event/get-user-events",
12
13
  JOIN_EVENT = "event/join-event",
13
14
  GET_EVENT = "event/get-event",
@@ -12,6 +12,7 @@ var CloudFunction;
12
12
  CloudFunction["SUBMIT_ANSWER"] = "ca/submit-answer";
13
13
  CloudFunction["SEND_EVENT_FEEDBACK"] = "event/send-event-feedback";
14
14
  CloudFunction["GET_EVENT_MATCH"] = "event/get-event-match";
15
+ CloudFunction["GET_EVENT_PARTICIPANTS"] = "event/get-event-participants";
15
16
  CloudFunction["GET_USER_EVENTS"] = "event/get-user-events";
16
17
  CloudFunction["JOIN_EVENT"] = "event/join-event";
17
18
  CloudFunction["GET_EVENT"] = "event/get-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, 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";
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, GetEventParticipantsRequest } 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, GetEventParticipantsResponse } 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.GET_EVENT_PARTICIPANTS]: {
34
+ payload: GetEventParticipantsRequest;
35
+ response: GetEventParticipantsResponse;
36
+ };
33
37
  [CloudFunction.SEND_EVENT_FEEDBACK]: {
34
38
  payload: SendEventFeedbackRequest;
35
39
  response: SendEventFeedbackResponse;
@@ -49,6 +49,9 @@ export type JoinEventRequest = {
49
49
  export type GetEventRequest = {
50
50
  eventId: string;
51
51
  };
52
+ export type GetEventParticipantsRequest = {
53
+ eventId: string;
54
+ };
52
55
  export type SubmitFeedbackRequest = {
53
56
  message: string;
54
57
  type: FeedbackType;
@@ -1,5 +1,5 @@
1
1
  import { Submission, CategoryEvaluation } from "./submission.types";
2
- import { Event, FullParticipantWithCS } from "./event.types";
2
+ import { Event, FullParticipant, FullParticipantWithCS } from "./event.types";
3
3
  import { UserMatch } from "./match.types";
4
4
  import { MatchableUser, MatchCheck } from "./matchmaking.types";
5
5
  import { Message } from "./message.types";
@@ -37,6 +37,12 @@ export type GetEventMatchResponse = FullParticipantWithCS;
37
37
  export type GetUserEventsResponse = Event[];
38
38
  export type JoinEventResponse = Event;
39
39
  export type GetEventResponse = Event;
40
+ export type GetEventParticipantsResponse = {
41
+ participants: FullParticipant[];
42
+ topMatchId: string | null;
43
+ topMatchIds: string[];
44
+ eventMatchId: string | null;
45
+ };
40
46
  export type SubmitFeedbackResponse = undefined;
41
47
  export type HandleLastMessageSeenResponse = undefined;
42
48
  export type SendMessageResponse = Message;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heartraite",
3
- "version": "1.0.152",
3
+ "version": "1.0.154",
4
4
  "description": "Heartraite npm package for common functionality",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -8,6 +8,7 @@ export enum CloudFunction {
8
8
  SUBMIT_ANSWER = "ca/submit-answer",
9
9
  SEND_EVENT_FEEDBACK = "event/send-event-feedback",
10
10
  GET_EVENT_MATCH = "event/get-event-match",
11
+ GET_EVENT_PARTICIPANTS = "event/get-event-participants",
11
12
  GET_USER_EVENTS = "event/get-user-events",
12
13
  JOIN_EVENT = "event/join-event",
13
14
  GET_EVENT = "event/get-event",
@@ -41,6 +41,7 @@ import {
41
41
  GetEventRequest,
42
42
  GetEventMatchRequest,
43
43
  SendEventFeedbackRequest,
44
+ GetEventParticipantsRequest,
44
45
  } from "./request.types";
45
46
  import {
46
47
  AddImagesResponse,
@@ -86,6 +87,7 @@ import {
86
87
  GetEventResponse,
87
88
  GetEventMatchResponse,
88
89
  SendEventFeedbackResponse,
90
+ GetEventParticipantsResponse,
89
91
  } from "./response.types";
90
92
 
91
93
  // Define a mapping of Cloud Functions to payload and response types
@@ -126,6 +128,10 @@ export type CloudFunctionTypes = {
126
128
  };
127
129
 
128
130
  // event
131
+ [CloudFunction.GET_EVENT_PARTICIPANTS]: {
132
+ payload: GetEventParticipantsRequest;
133
+ response: GetEventParticipantsResponse;
134
+ };
129
135
  [CloudFunction.SEND_EVENT_FEEDBACK]: {
130
136
  payload: SendEventFeedbackRequest;
131
137
  response: SendEventFeedbackResponse;
@@ -63,7 +63,6 @@ export type SendEventFeedbackRequest = {
63
63
  };
64
64
  followUpInterest: boolean;
65
65
  };
66
-
67
66
  export type GetEventMatchRequest = {
68
67
  eventId: string;
69
68
  };
@@ -73,6 +72,9 @@ export type JoinEventRequest = {
73
72
  export type GetEventRequest = {
74
73
  eventId: string;
75
74
  };
75
+ export type GetEventParticipantsRequest = {
76
+ eventId: string;
77
+ };
76
78
 
77
79
  // feedback
78
80
  export type SubmitFeedbackRequest = {
@@ -1,5 +1,5 @@
1
1
  import { Submission, CategoryEvaluation } from "./submission.types";
2
- import { Event, FullParticipantWithCS } from "./event.types";
2
+ import { Event, FullParticipant, FullParticipantWithCS } from "./event.types";
3
3
  import { UserMatch } from "./match.types";
4
4
  import { MatchableUser, MatchCheck } from "./matchmaking.types";
5
5
  import { Message } from "./message.types";
@@ -48,6 +48,12 @@ export type GetEventMatchResponse = FullParticipantWithCS;
48
48
  export type GetUserEventsResponse = Event[];
49
49
  export type JoinEventResponse = Event;
50
50
  export type GetEventResponse = Event;
51
+ export type GetEventParticipantsResponse = {
52
+ participants: FullParticipant[];
53
+ topMatchId: string | null;
54
+ topMatchIds: string[];
55
+ eventMatchId: string | null;
56
+ };
51
57
 
52
58
  // feedback
53
59
  export type SubmitFeedbackResponse = undefined;