heartraite 1.0.152 → 1.0.153
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.
- package/dist/enum/cloudfunction.enum.d.ts +1 -0
- package/dist/enum/cloudfunction.enum.js +1 -0
- package/dist/types/cloud-function-types.d.ts +6 -2
- package/dist/types/request.types.d.ts +3 -0
- package/dist/types/response.types.d.ts +6 -1
- package/package.json +1 -1
- package/src/enum/cloudfunction.enum.ts +1 -0
- package/src/types/cloud-function-types.ts +6 -0
- package/src/types/request.types.ts +3 -1
- package/src/types/response.types.ts +6 -1
|
@@ -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;
|
|
@@ -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,11 @@ 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
|
+
topMatchIds: string[];
|
|
43
|
+
eventMatchId: string | null;
|
|
44
|
+
};
|
|
40
45
|
export type SubmitFeedbackResponse = undefined;
|
|
41
46
|
export type HandleLastMessageSeenResponse = undefined;
|
|
42
47
|
export type SendMessageResponse = Message;
|
package/package.json
CHANGED
|
@@ -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,11 @@ 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
|
+
topMatchIds: string[];
|
|
54
|
+
eventMatchId: string | null;
|
|
55
|
+
};
|
|
51
56
|
|
|
52
57
|
// feedback
|
|
53
58
|
export type SubmitFeedbackResponse = undefined;
|