heartraite 1.0.30 → 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 -18
- package/dist/types/request.types.d.ts +3 -7
- package/dist/types/response.types.d.ts +1 -5
- package/package.json +1 -1
- package/src/enum/cloudfunction.enum.ts +1 -0
- package/src/types/cloud-function-types.ts +6 -23
- package/src/types/request.types.ts +3 -5
- package/src/types/response.types.ts +1 -5
|
@@ -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,
|
|
3
|
-
import { AddImagesResponse, AuthenticateBankIDResponse,
|
|
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;
|
|
@@ -74,10 +78,6 @@ export type CloudFunctionTypes = {
|
|
|
74
78
|
payload: GetMessagesRequest;
|
|
75
79
|
response: GetMessagesResponse;
|
|
76
80
|
};
|
|
77
|
-
[CloudFunction.CALCULATE_PLS_SCORE]: {
|
|
78
|
-
payload: CalculatePLSScoreRequest;
|
|
79
|
-
response: CalculatePLSScoreResponse;
|
|
80
|
-
};
|
|
81
81
|
[CloudFunction.CREATE_PLS_INPUT]: {
|
|
82
82
|
payload: CreatePLSInputRequest;
|
|
83
83
|
response: CreatePLSInputResponse;
|
|
@@ -98,18 +98,6 @@ export type CloudFunctionTypes = {
|
|
|
98
98
|
payload: SubmitPLSCategoryFeedbackRequest;
|
|
99
99
|
response: SubmitPLSCategoryFeedbackResponse;
|
|
100
100
|
};
|
|
101
|
-
[CloudFunction.CREATE_PLS_ASSESSMENT]: {
|
|
102
|
-
payload: CreatePLSAssessmentRequest;
|
|
103
|
-
response: CreatePLSAssessmentResponse;
|
|
104
|
-
};
|
|
105
|
-
[CloudFunction.GET_PLS_ASSESSMENT]: {
|
|
106
|
-
payload: GetPLSAssessmentRequest;
|
|
107
|
-
response: GetPLSAssessmentResponse;
|
|
108
|
-
};
|
|
109
|
-
[CloudFunction.GET_PLS_ASSESSMENTS]: {
|
|
110
|
-
payload?: undefined;
|
|
111
|
-
response: GetPLSAssessmentsResponse;
|
|
112
|
-
};
|
|
113
101
|
[CloudFunction.UPDATE_QUESTIONS]: {
|
|
114
102
|
payload: UpdateQuestionsRequest;
|
|
115
103
|
response: UpdateQuestionsResponse;
|
|
@@ -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;
|
|
@@ -64,9 +67,6 @@ export type GetMatchableUserRequest = {
|
|
|
64
67
|
export type GetMatchCheckRequest = {
|
|
65
68
|
userId: string;
|
|
66
69
|
};
|
|
67
|
-
export type CalculatePLSScoreRequest = {
|
|
68
|
-
assessmentId: string;
|
|
69
|
-
};
|
|
70
70
|
export type CreatePLSInputRequest = {
|
|
71
71
|
questionnaire: Record<string, string>;
|
|
72
72
|
channelId: string;
|
|
@@ -93,10 +93,6 @@ export type SubmitPLSCategoryFeedbackRequest = {
|
|
|
93
93
|
evaluationReflection: string;
|
|
94
94
|
additionalThoughts: string;
|
|
95
95
|
};
|
|
96
|
-
export type CreatePLSAssessmentRequest = undefined;
|
|
97
|
-
export type GetPLSAssessmentRequest = {
|
|
98
|
-
id: string;
|
|
99
|
-
};
|
|
100
96
|
export type UpdateQuestionsRequest = {
|
|
101
97
|
questions: Record<string, string>;
|
|
102
98
|
};
|
|
@@ -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";
|
|
@@ -28,6 +27,7 @@ export type SubmitAnswerResponse = {
|
|
|
28
27
|
categoryEvaluation?: CategoryEvaluation;
|
|
29
28
|
};
|
|
30
29
|
export type SubmitCategoryFeedbackResponse = CategoryEvaluation;
|
|
30
|
+
export type HandleLastMessageSeenResponse = undefined;
|
|
31
31
|
export type SendMessageResponse = Message;
|
|
32
32
|
export type GetMessagesResponse = Message[];
|
|
33
33
|
export type HandleLikeResponse = boolean;
|
|
@@ -42,11 +42,7 @@ export type CreateLikeResponse = {
|
|
|
42
42
|
};
|
|
43
43
|
export type GetLikesResponse = Like[];
|
|
44
44
|
export type HandleLikeSeenResponse = void;
|
|
45
|
-
export type CalculatePLSScoreResponse = FullAssessment;
|
|
46
45
|
export type CreatePLSInputResponse = void;
|
|
47
|
-
export type CreatePLSAssessmentResponse = Assessment;
|
|
48
|
-
export type GetPLSAssessmentResponse = FullAssessment;
|
|
49
|
-
export type GetPLSAssessmentsResponse = FullAssessment[];
|
|
50
46
|
export type CreatePLSSubmissionResponse = Submission;
|
|
51
47
|
export type GetPLSSubmissionResponse = Submission;
|
|
52
48
|
export type UpdatePLSAnswerResponse = {
|
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",
|
|
@@ -2,12 +2,10 @@ import { CloudFunction } from "../enum";
|
|
|
2
2
|
import {
|
|
3
3
|
AddImagesRequest,
|
|
4
4
|
AuthenticateBankIDRequest,
|
|
5
|
-
CalculatePLSScoreRequest,
|
|
6
5
|
CollectBankIDRequest,
|
|
7
6
|
CreateBillingPortalRequest,
|
|
8
7
|
CreateCheckoutSessionRequest,
|
|
9
8
|
CreateLikeRequest,
|
|
10
|
-
CreatePLSAssessmentRequest,
|
|
11
9
|
CreatePLSInputRequest,
|
|
12
10
|
CreatePLSSubmissionRequest,
|
|
13
11
|
CreateReportRequest,
|
|
@@ -17,10 +15,10 @@ import {
|
|
|
17
15
|
GetMatchesRequest,
|
|
18
16
|
GetMatchRequest,
|
|
19
17
|
GetMessagesRequest,
|
|
20
|
-
GetPLSAssessmentRequest,
|
|
21
18
|
GetPLSSubmissionRequest,
|
|
22
19
|
GetProductsRequest,
|
|
23
20
|
GetUserRequest,
|
|
21
|
+
HandleLastMessageSeenRequest,
|
|
24
22
|
HandleLikeSeenRequest,
|
|
25
23
|
HandleMatchSeenRequest,
|
|
26
24
|
RegisterOnboardingRequest,
|
|
@@ -37,12 +35,10 @@ import {
|
|
|
37
35
|
import {
|
|
38
36
|
AddImagesResponse,
|
|
39
37
|
AuthenticateBankIDResponse,
|
|
40
|
-
CalculatePLSScoreResponse,
|
|
41
38
|
CollectBankIDResponse,
|
|
42
39
|
CreateBillingPortalResponse,
|
|
43
40
|
CreateCheckoutSessionResponse,
|
|
44
41
|
CreateLikeResponse,
|
|
45
|
-
CreatePLSAssessmentResponse,
|
|
46
42
|
CreatePLSInputResponse,
|
|
47
43
|
CreatePLSSubmissionResponse,
|
|
48
44
|
CreateReportResponse,
|
|
@@ -53,11 +49,10 @@ import {
|
|
|
53
49
|
GetMatchesResponse,
|
|
54
50
|
GetMatchResponse,
|
|
55
51
|
GetMessagesResponse,
|
|
56
|
-
GetPLSAssessmentResponse,
|
|
57
|
-
GetPLSAssessmentsResponse,
|
|
58
52
|
GetPLSSubmissionResponse,
|
|
59
53
|
GetProductsResponse,
|
|
60
54
|
GetUserResponse,
|
|
55
|
+
HandleLastMessageSeenResponse,
|
|
61
56
|
HandleLikeSeenResponse,
|
|
62
57
|
HandleMatchSeenResponse,
|
|
63
58
|
RegisterOnboardingResponse,
|
|
@@ -149,6 +144,10 @@ export type CloudFunctionTypes = {
|
|
|
149
144
|
};
|
|
150
145
|
|
|
151
146
|
// messages
|
|
147
|
+
[CloudFunction.HANDLE_LAST_MESSAGE_SEEN]: {
|
|
148
|
+
payload: HandleLastMessageSeenRequest;
|
|
149
|
+
response: HandleLastMessageSeenResponse;
|
|
150
|
+
};
|
|
152
151
|
[CloudFunction.SEND_MESSAGE]: {
|
|
153
152
|
payload: SendMessageRequest;
|
|
154
153
|
response: SendMessageResponse;
|
|
@@ -159,10 +158,6 @@ export type CloudFunctionTypes = {
|
|
|
159
158
|
};
|
|
160
159
|
|
|
161
160
|
// pls
|
|
162
|
-
[CloudFunction.CALCULATE_PLS_SCORE]: {
|
|
163
|
-
payload: CalculatePLSScoreRequest;
|
|
164
|
-
response: CalculatePLSScoreResponse;
|
|
165
|
-
};
|
|
166
161
|
[CloudFunction.CREATE_PLS_INPUT]: {
|
|
167
162
|
payload: CreatePLSInputRequest;
|
|
168
163
|
response: CreatePLSInputResponse;
|
|
@@ -183,18 +178,6 @@ export type CloudFunctionTypes = {
|
|
|
183
178
|
payload: SubmitPLSCategoryFeedbackRequest;
|
|
184
179
|
response: SubmitPLSCategoryFeedbackResponse;
|
|
185
180
|
};
|
|
186
|
-
[CloudFunction.CREATE_PLS_ASSESSMENT]: {
|
|
187
|
-
payload: CreatePLSAssessmentRequest;
|
|
188
|
-
response: CreatePLSAssessmentResponse;
|
|
189
|
-
};
|
|
190
|
-
[CloudFunction.GET_PLS_ASSESSMENT]: {
|
|
191
|
-
payload: GetPLSAssessmentRequest;
|
|
192
|
-
response: GetPLSAssessmentResponse;
|
|
193
|
-
};
|
|
194
|
-
[CloudFunction.GET_PLS_ASSESSMENTS]: {
|
|
195
|
-
payload?: undefined;
|
|
196
|
-
response: GetPLSAssessmentsResponse;
|
|
197
|
-
};
|
|
198
181
|
|
|
199
182
|
// rating
|
|
200
183
|
[CloudFunction.UPDATE_QUESTIONS]: {
|
|
@@ -39,6 +39,9 @@ export type CollectBankIDRequest = {
|
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
// message
|
|
42
|
+
export type HandleLastMessageSeenRequest = {
|
|
43
|
+
conversationId: string;
|
|
44
|
+
};
|
|
42
45
|
export type SendMessageRequest = {
|
|
43
46
|
conversationId: string;
|
|
44
47
|
messageId: string;
|
|
@@ -65,9 +68,6 @@ export type GetMatchableUserRequest = { userId: string };
|
|
|
65
68
|
export type GetMatchCheckRequest = { userId: string };
|
|
66
69
|
|
|
67
70
|
// pls
|
|
68
|
-
export type CalculatePLSScoreRequest = {
|
|
69
|
-
assessmentId: string;
|
|
70
|
-
};
|
|
71
71
|
export type CreatePLSInputRequest = {
|
|
72
72
|
questionnaire: Record<string, string>;
|
|
73
73
|
channelId: string;
|
|
@@ -94,8 +94,6 @@ export type SubmitPLSCategoryFeedbackRequest = {
|
|
|
94
94
|
evaluationReflection: string;
|
|
95
95
|
additionalThoughts: string;
|
|
96
96
|
};
|
|
97
|
-
export type CreatePLSAssessmentRequest = undefined;
|
|
98
|
-
export type GetPLSAssessmentRequest = { id: string };
|
|
99
97
|
|
|
100
98
|
// rating
|
|
101
99
|
export type UpdateQuestionsRequest = { questions: Record<string, string> };
|
|
@@ -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
|
|
|
@@ -55,11 +55,7 @@ export type GetLikesResponse = Like[];
|
|
|
55
55
|
export type HandleLikeSeenResponse = void;
|
|
56
56
|
|
|
57
57
|
// pls
|
|
58
|
-
export type CalculatePLSScoreResponse = FullAssessment;
|
|
59
58
|
export type CreatePLSInputResponse = void;
|
|
60
|
-
export type CreatePLSAssessmentResponse = Assessment;
|
|
61
|
-
export type GetPLSAssessmentResponse = FullAssessment;
|
|
62
|
-
export type GetPLSAssessmentsResponse = FullAssessment[];
|
|
63
59
|
export type CreatePLSSubmissionResponse = Submission;
|
|
64
60
|
export type GetPLSSubmissionResponse = Submission;
|
|
65
61
|
export type UpdatePLSAnswerResponse = {
|