heartraite 1.0.62 → 1.0.63
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 +1 -0
- package/dist/types/response.types.d.ts +2 -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 +1 -0
- package/src/types/response.types.ts +2 -1
|
@@ -5,6 +5,7 @@ export declare enum CloudFunction {
|
|
|
5
5
|
GET_CA = "ca/get-ca",
|
|
6
6
|
SUBMIT_ANSWER = "ca/submit-answer",
|
|
7
7
|
SUBMIT_CATEGORY_FEEDBACK = "ca/submit-category-feedback",
|
|
8
|
+
GET_SELF_AWARENESS = "ca/get-self-awareness",
|
|
8
9
|
CREATE_LIKE = "like/create-like",
|
|
9
10
|
GET_LIKES = "like/get-likes",
|
|
10
11
|
HANDLE_LIKE_SEEN = "like/handle-like-seen",
|
|
@@ -9,6 +9,7 @@ var CloudFunction;
|
|
|
9
9
|
CloudFunction["GET_CA"] = "ca/get-ca";
|
|
10
10
|
CloudFunction["SUBMIT_ANSWER"] = "ca/submit-answer";
|
|
11
11
|
CloudFunction["SUBMIT_CATEGORY_FEEDBACK"] = "ca/submit-category-feedback";
|
|
12
|
+
CloudFunction["GET_SELF_AWARENESS"] = "ca/get-self-awareness";
|
|
12
13
|
CloudFunction["CREATE_LIKE"] = "like/create-like";
|
|
13
14
|
CloudFunction["GET_LIKES"] = "like/get-likes";
|
|
14
15
|
CloudFunction["HANDLE_LIKE_SEEN"] = "like/handle-like-seen";
|
|
@@ -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, GetMatchRequest, GetMessagesRequest, GetPLSScoresRequest, GetPLSSubmissionRequest, GetProductsRequest, GetUserRequest, HandleLastMessageSeenRequest, HandleLikeSeenRequest, HandleMatchSeenRequest, RegisterOnboardingRequest, RegisterUserRequest, RemoveMatchRequest, SendMessageRequest, SubmitAnswerRequest, SubmitCategoryFeedbackRequest, SubmitPLSCategoryFeedbackRequest, SubmitPLSDemographicsRequest, UpdatePLSAnswerRequest, UpdateQuestionsRequest, UpdateUserRequest } from "./request.types";
|
|
3
|
-
import { AddImagesResponse, AuthenticateBankIDResponse, CollectBankIDResponse, CreateBillingPortalResponse, CreateCheckoutSessionResponse, CreateLikeResponse, CreatePLSInputResponse, CreatePLSSubmissionResponse, CreateReportResponse, DeleteUserResponse, GetCAResponse, GetLikesResponse, GetMatchableUserResponse, GetMatchableUsersResponse, GetMatchCheckResponse, GetMatchesResponse, GetMatchResponse, GetMessagesResponse, GetPLSScoresResponse, GetPLSSubmissionResponse, GetProductsResponse, GetUserResponse, HandleLastMessageSeenResponse, HandleLikeSeenResponse, HandleMatchSeenResponse, RegisterOnboardingResponse, RegisterUserResponse, RemoveMatchResponse, SendMessageResponse, SubmitAnswerResponse, SubmitCategoryFeedbackResponse, SubmitPLSCategoryFeedbackResponse, SubmitPLSDemographicsResponse, UpdatePLSAnswerResponse, UpdateQuestionsResponse, UpdateUserResponse } from "./response.types";
|
|
2
|
+
import { AddImagesRequest, AuthenticateBankIDRequest, CollectBankIDRequest, CreateBillingPortalRequest, CreateCheckoutSessionRequest, CreateLikeRequest, CreatePLSInputRequest, CreatePLSSubmissionRequest, CreateReportRequest, DeleteUserRequest, GetCARequest, GetLikesRequest, GetMatchableUserRequest, GetMatchCheckRequest, GetMatchesRequest, GetMatchRequest, GetMessagesRequest, GetPLSScoresRequest, GetPLSSubmissionRequest, GetProductsRequest, GetSelfAwarenessRequest, GetUserRequest, HandleLastMessageSeenRequest, HandleLikeSeenRequest, HandleMatchSeenRequest, RegisterOnboardingRequest, RegisterUserRequest, RemoveMatchRequest, SendMessageRequest, SubmitAnswerRequest, SubmitCategoryFeedbackRequest, SubmitPLSCategoryFeedbackRequest, SubmitPLSDemographicsRequest, UpdatePLSAnswerRequest, UpdateQuestionsRequest, UpdateUserRequest } from "./request.types";
|
|
3
|
+
import { AddImagesResponse, AuthenticateBankIDResponse, CollectBankIDResponse, CreateBillingPortalResponse, CreateCheckoutSessionResponse, CreateLikeResponse, CreatePLSInputResponse, CreatePLSSubmissionResponse, CreateReportResponse, DeleteUserResponse, GetCAResponse, GetLikesResponse, GetMatchableUserResponse, GetMatchableUsersResponse, GetMatchCheckResponse, GetMatchesResponse, GetMatchResponse, GetMessagesResponse, GetPLSScoresResponse, GetPLSSubmissionResponse, GetProductsResponse, GetSelfAwarenessReponse, GetUserResponse, HandleLastMessageSeenResponse, HandleLikeSeenResponse, HandleMatchSeenResponse, RegisterOnboardingResponse, RegisterUserResponse, RemoveMatchResponse, SendMessageResponse, SubmitAnswerResponse, SubmitCategoryFeedbackResponse, SubmitPLSCategoryFeedbackResponse, SubmitPLSDemographicsResponse, UpdatePLSAnswerResponse, UpdateQuestionsResponse, UpdateUserResponse } from "./response.types";
|
|
4
4
|
export type CloudFunctionTypes = {
|
|
5
5
|
[CloudFunction.REGISTER_USER]: {
|
|
6
6
|
payload: RegisterUserRequest;
|
|
@@ -26,6 +26,10 @@ export type CloudFunctionTypes = {
|
|
|
26
26
|
payload: SubmitCategoryFeedbackRequest;
|
|
27
27
|
response: SubmitCategoryFeedbackResponse;
|
|
28
28
|
};
|
|
29
|
+
[CloudFunction.GET_SELF_AWARENESS]: {
|
|
30
|
+
payload: GetSelfAwarenessRequest;
|
|
31
|
+
response: GetSelfAwarenessReponse;
|
|
32
|
+
};
|
|
29
33
|
[CloudFunction.CREATE_LIKE]: {
|
|
30
34
|
payload: CreateLikeRequest;
|
|
31
35
|
response: CreateLikeResponse;
|
|
@@ -20,6 +20,7 @@ export type SubmitCategoryFeedbackRequest = {
|
|
|
20
20
|
evaluationReflection: string;
|
|
21
21
|
additionalThoughts: string;
|
|
22
22
|
};
|
|
23
|
+
export type GetSelfAwarenessRequest = undefined;
|
|
23
24
|
export type AuthenticateBankIDRequest = undefined;
|
|
24
25
|
export type CollectBankIDRequest = {
|
|
25
26
|
orderRef: string;
|
|
@@ -5,7 +5,7 @@ import { Message } from "./message.types";
|
|
|
5
5
|
import { StripeProduct } from "./stripe.types";
|
|
6
6
|
import { User } from "./user.types";
|
|
7
7
|
import { Like } from "./like.types";
|
|
8
|
-
import { CA } from "./ca.types";
|
|
8
|
+
import { CA, SelfAwareness } from "./ca.types";
|
|
9
9
|
import { PLSScore } from "./pls.types";
|
|
10
10
|
export type RegisterUserResponse = {
|
|
11
11
|
success: boolean;
|
|
@@ -28,6 +28,7 @@ export type SubmitAnswerResponse = {
|
|
|
28
28
|
categoryEvaluation?: CategoryEvaluation;
|
|
29
29
|
};
|
|
30
30
|
export type SubmitCategoryFeedbackResponse = CategoryEvaluation;
|
|
31
|
+
export type GetSelfAwarenessReponse = SelfAwareness;
|
|
31
32
|
export type HandleLastMessageSeenResponse = undefined;
|
|
32
33
|
export type SendMessageResponse = Message;
|
|
33
34
|
export type GetMessagesResponse = Message[];
|
package/package.json
CHANGED
|
@@ -5,6 +5,7 @@ export enum CloudFunction {
|
|
|
5
5
|
GET_CA = "ca/get-ca",
|
|
6
6
|
SUBMIT_ANSWER = "ca/submit-answer",
|
|
7
7
|
SUBMIT_CATEGORY_FEEDBACK = "ca/submit-category-feedback",
|
|
8
|
+
GET_SELF_AWARENESS = "ca/get-self-awareness",
|
|
8
9
|
CREATE_LIKE = "like/create-like",
|
|
9
10
|
GET_LIKES = "like/get-likes",
|
|
10
11
|
HANDLE_LIKE_SEEN = "like/handle-like-seen",
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
GetPLSScoresRequest,
|
|
21
21
|
GetPLSSubmissionRequest,
|
|
22
22
|
GetProductsRequest,
|
|
23
|
+
GetSelfAwarenessRequest,
|
|
23
24
|
GetUserRequest,
|
|
24
25
|
HandleLastMessageSeenRequest,
|
|
25
26
|
HandleLikeSeenRequest,
|
|
@@ -58,6 +59,7 @@ import {
|
|
|
58
59
|
GetPLSScoresResponse,
|
|
59
60
|
GetPLSSubmissionResponse,
|
|
60
61
|
GetProductsResponse,
|
|
62
|
+
GetSelfAwarenessReponse,
|
|
61
63
|
GetUserResponse,
|
|
62
64
|
HandleLastMessageSeenResponse,
|
|
63
65
|
HandleLikeSeenResponse,
|
|
@@ -106,6 +108,10 @@ export type CloudFunctionTypes = {
|
|
|
106
108
|
payload: SubmitCategoryFeedbackRequest;
|
|
107
109
|
response: SubmitCategoryFeedbackResponse;
|
|
108
110
|
};
|
|
111
|
+
[CloudFunction.GET_SELF_AWARENESS]: {
|
|
112
|
+
payload: GetSelfAwarenessRequest;
|
|
113
|
+
response: GetSelfAwarenessReponse;
|
|
114
|
+
};
|
|
109
115
|
|
|
110
116
|
// like
|
|
111
117
|
[CloudFunction.CREATE_LIKE]: {
|
|
@@ -5,7 +5,7 @@ import { Message } from "./message.types";
|
|
|
5
5
|
import { StripeProduct } from "./stripe.types";
|
|
6
6
|
import { User } from "./user.types";
|
|
7
7
|
import { Like } from "./like.types";
|
|
8
|
-
import { CA } from "./ca.types";
|
|
8
|
+
import { CA, SelfAwareness } from "./ca.types";
|
|
9
9
|
import { PLSScore } from "./pls.types";
|
|
10
10
|
|
|
11
11
|
// auth
|
|
@@ -35,6 +35,7 @@ export type SubmitAnswerResponse = {
|
|
|
35
35
|
categoryEvaluation?: CategoryEvaluation;
|
|
36
36
|
};
|
|
37
37
|
export type SubmitCategoryFeedbackResponse = CategoryEvaluation;
|
|
38
|
+
export type GetSelfAwarenessReponse = SelfAwareness;
|
|
38
39
|
|
|
39
40
|
// message
|
|
40
41
|
export type HandleLastMessageSeenResponse = undefined;
|