heartraite 1.0.31 → 1.0.32
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 +1 -0
- 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 -0
- package/src/types/response.types.ts +1 -1
|
@@ -15,6 +15,7 @@ export declare enum CloudFunction {
|
|
|
15
15
|
GET_MATCH_CHECK = "matchmaking/get-match-check",
|
|
16
16
|
GET_MATCHABLE_USER = "matchmaking/get-matchable-user",
|
|
17
17
|
GET_MATCHABLE_USERS = "matchmaking/get-matchable-users",
|
|
18
|
+
HANDLE_LAST_MESSAGE_SEEN = "message/handle-last-message-seen",
|
|
18
19
|
SEND_MESSAGE = "message/send-message",
|
|
19
20
|
GET_MESSAGES = "message/get-messages",
|
|
20
21
|
CALCULATE_PLS_SCORE = "pls/calculate-score",
|
|
@@ -19,6 +19,7 @@ var CloudFunction;
|
|
|
19
19
|
CloudFunction["GET_MATCH_CHECK"] = "matchmaking/get-match-check";
|
|
20
20
|
CloudFunction["GET_MATCHABLE_USER"] = "matchmaking/get-matchable-user";
|
|
21
21
|
CloudFunction["GET_MATCHABLE_USERS"] = "matchmaking/get-matchable-users";
|
|
22
|
+
CloudFunction["HANDLE_LAST_MESSAGE_SEEN"] = "message/handle-last-message-seen";
|
|
22
23
|
CloudFunction["SEND_MESSAGE"] = "message/send-message";
|
|
23
24
|
CloudFunction["GET_MESSAGES"] = "message/get-messages";
|
|
24
25
|
CloudFunction["CALCULATE_PLS_SCORE"] = "pls/calculate-score";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CloudFunction } from "../enum";
|
|
2
|
-
import { AddImagesRequest, AuthenticateBankIDRequest, CollectBankIDRequest, CreateBillingPortalRequest, CreateCheckoutSessionRequest, CreateLikeRequest, CreatePLSInputRequest, CreatePLSSubmissionRequest, CreateReportRequest, GetCARequest, GetMatchableUserRequest, GetMatchCheckRequest, GetMatchesRequest, GetMatchRequest, GetMessagesRequest, GetPLSSubmissionRequest, GetProductsRequest, GetUserRequest, HandleLikeSeenRequest, HandleMatchSeenRequest, RegisterOnboardingRequest, RegisterUserRequest, RemoveMatchRequest, SendMessageRequest, SubmitAnswerRequest, SubmitCategoryFeedbackRequest, SubmitPLSCategoryFeedbackRequest, UpdatePLSAnswerRequest, UpdateQuestionsRequest, UpdateUserRequest } from "./request.types";
|
|
3
|
-
import { AddImagesResponse, AuthenticateBankIDResponse, CollectBankIDResponse, CreateBillingPortalResponse, CreateCheckoutSessionResponse, CreateLikeResponse, CreatePLSInputResponse, CreatePLSSubmissionResponse, CreateReportResponse, GetCAResponse, GetMatchableUserResponse, GetMatchableUsersResponse, GetMatchCheckResponse, GetMatchesResponse, GetMatchResponse, GetMessagesResponse, GetPLSSubmissionResponse, GetProductsResponse, GetUserResponse, HandleLikeSeenResponse, HandleMatchSeenResponse, RegisterOnboardingResponse, RegisterUserResponse, RemoveMatchResponse, SendMessageResponse, SubmitAnswerResponse, SubmitCategoryFeedbackResponse, SubmitPLSCategoryFeedbackResponse, UpdatePLSAnswerResponse, UpdateQuestionsResponse, UpdateUserResponse } from "./response.types";
|
|
2
|
+
import { AddImagesRequest, AuthenticateBankIDRequest, CollectBankIDRequest, CreateBillingPortalRequest, CreateCheckoutSessionRequest, CreateLikeRequest, CreatePLSInputRequest, CreatePLSSubmissionRequest, CreateReportRequest, GetCARequest, GetMatchableUserRequest, GetMatchCheckRequest, GetMatchesRequest, GetMatchRequest, GetMessagesRequest, GetPLSSubmissionRequest, GetProductsRequest, GetUserRequest, HandleLastMessageSeenRequest, HandleLikeSeenRequest, HandleMatchSeenRequest, RegisterOnboardingRequest, RegisterUserRequest, RemoveMatchRequest, SendMessageRequest, SubmitAnswerRequest, SubmitCategoryFeedbackRequest, SubmitPLSCategoryFeedbackRequest, UpdatePLSAnswerRequest, UpdateQuestionsRequest, UpdateUserRequest } from "./request.types";
|
|
3
|
+
import { AddImagesResponse, AuthenticateBankIDResponse, CollectBankIDResponse, CreateBillingPortalResponse, CreateCheckoutSessionResponse, CreateLikeResponse, CreatePLSInputResponse, CreatePLSSubmissionResponse, CreateReportResponse, GetCAResponse, GetMatchableUserResponse, GetMatchableUsersResponse, GetMatchCheckResponse, GetMatchesResponse, GetMatchResponse, GetMessagesResponse, GetPLSSubmissionResponse, GetProductsResponse, GetUserResponse, HandleLastMessageSeenResponse, HandleLikeSeenResponse, HandleMatchSeenResponse, RegisterOnboardingResponse, RegisterUserResponse, RemoveMatchResponse, SendMessageResponse, SubmitAnswerResponse, SubmitCategoryFeedbackResponse, SubmitPLSCategoryFeedbackResponse, UpdatePLSAnswerResponse, UpdateQuestionsResponse, UpdateUserResponse } from "./response.types";
|
|
4
4
|
export type CloudFunctionTypes = {
|
|
5
5
|
[CloudFunction.REGISTER_USER]: {
|
|
6
6
|
payload: RegisterUserRequest;
|
|
@@ -66,6 +66,10 @@ export type CloudFunctionTypes = {
|
|
|
66
66
|
payload: GetMatchableUsersResponse;
|
|
67
67
|
response: GetMatchableUsersResponse;
|
|
68
68
|
};
|
|
69
|
+
[CloudFunction.HANDLE_LAST_MESSAGE_SEEN]: {
|
|
70
|
+
payload: HandleLastMessageSeenRequest;
|
|
71
|
+
response: HandleLastMessageSeenResponse;
|
|
72
|
+
};
|
|
69
73
|
[CloudFunction.SEND_MESSAGE]: {
|
|
70
74
|
payload: SendMessageRequest;
|
|
71
75
|
response: SendMessageResponse;
|
|
@@ -24,6 +24,9 @@ export type AuthenticateBankIDRequest = undefined;
|
|
|
24
24
|
export type CollectBankIDRequest = {
|
|
25
25
|
orderRef: string;
|
|
26
26
|
};
|
|
27
|
+
export type HandleLastMessageSeenRequest = {
|
|
28
|
+
conversationId: string;
|
|
29
|
+
};
|
|
27
30
|
export type SendMessageRequest = {
|
|
28
31
|
conversationId: string;
|
|
29
32
|
messageId: string;
|
|
@@ -27,6 +27,7 @@ export type SubmitAnswerResponse = {
|
|
|
27
27
|
categoryEvaluation?: CategoryEvaluation;
|
|
28
28
|
};
|
|
29
29
|
export type SubmitCategoryFeedbackResponse = CategoryEvaluation;
|
|
30
|
+
export type HandleLastMessageSeenResponse = undefined;
|
|
30
31
|
export type SendMessageResponse = Message;
|
|
31
32
|
export type GetMessagesResponse = Message[];
|
|
32
33
|
export type HandleLikeResponse = boolean;
|
package/package.json
CHANGED
|
@@ -15,6 +15,7 @@ export enum CloudFunction {
|
|
|
15
15
|
GET_MATCH_CHECK = "matchmaking/get-match-check",
|
|
16
16
|
GET_MATCHABLE_USER = "matchmaking/get-matchable-user",
|
|
17
17
|
GET_MATCHABLE_USERS = "matchmaking/get-matchable-users",
|
|
18
|
+
HANDLE_LAST_MESSAGE_SEEN = "message/handle-last-message-seen",
|
|
18
19
|
SEND_MESSAGE = "message/send-message",
|
|
19
20
|
GET_MESSAGES = "message/get-messages",
|
|
20
21
|
CALCULATE_PLS_SCORE = "pls/calculate-score",
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
GetPLSSubmissionRequest,
|
|
19
19
|
GetProductsRequest,
|
|
20
20
|
GetUserRequest,
|
|
21
|
+
HandleLastMessageSeenRequest,
|
|
21
22
|
HandleLikeSeenRequest,
|
|
22
23
|
HandleMatchSeenRequest,
|
|
23
24
|
RegisterOnboardingRequest,
|
|
@@ -51,6 +52,7 @@ import {
|
|
|
51
52
|
GetPLSSubmissionResponse,
|
|
52
53
|
GetProductsResponse,
|
|
53
54
|
GetUserResponse,
|
|
55
|
+
HandleLastMessageSeenResponse,
|
|
54
56
|
HandleLikeSeenResponse,
|
|
55
57
|
HandleMatchSeenResponse,
|
|
56
58
|
RegisterOnboardingResponse,
|
|
@@ -142,6 +144,10 @@ export type CloudFunctionTypes = {
|
|
|
142
144
|
};
|
|
143
145
|
|
|
144
146
|
// messages
|
|
147
|
+
[CloudFunction.HANDLE_LAST_MESSAGE_SEEN]: {
|
|
148
|
+
payload: HandleLastMessageSeenRequest;
|
|
149
|
+
response: HandleLastMessageSeenResponse;
|
|
150
|
+
};
|
|
145
151
|
[CloudFunction.SEND_MESSAGE]: {
|
|
146
152
|
payload: SendMessageRequest;
|
|
147
153
|
response: SendMessageResponse;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Assessment, FullAssessment } from "./assessment.types";
|
|
2
1
|
import { Submission, CategoryEvaluation } from "./submission.types";
|
|
3
2
|
import { Match, UserMatch } from "./match.types";
|
|
4
3
|
import { MatchableUser, MatchCheck } from "./matchmaking.types";
|
|
@@ -37,6 +36,7 @@ export type SubmitAnswerResponse = {
|
|
|
37
36
|
export type SubmitCategoryFeedbackResponse = CategoryEvaluation;
|
|
38
37
|
|
|
39
38
|
// message
|
|
39
|
+
export type HandleLastMessageSeenResponse = undefined;
|
|
40
40
|
export type SendMessageResponse = Message;
|
|
41
41
|
export type GetMessagesResponse = Message[];
|
|
42
42
|
|