heartraite 1.0.61 → 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.
@@ -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";
@@ -15,4 +15,17 @@ export type CAScore = {
15
15
  userId: string;
16
16
  scores: Score;
17
17
  };
18
+ export type SelfAwareness = {
19
+ categories: SACategory[];
20
+ };
21
+ export type SACategory = {
22
+ id: string;
23
+ sections: SACategorySection[];
24
+ };
25
+ export type SACategorySection = {
26
+ sectionId: string;
27
+ insight: string;
28
+ reflection: string;
29
+ tip: string;
30
+ };
18
31
  export {};
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heartraite",
3
- "version": "1.0.61",
3
+ "version": "1.0.63",
4
4
  "description": "Heartraite npm package for common functionality",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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",
@@ -19,3 +19,19 @@ export type CAScore = {
19
19
  userId: string;
20
20
  scores: Score;
21
21
  };
22
+
23
+ export type SelfAwareness = {
24
+ categories: SACategory[];
25
+ };
26
+
27
+ export type SACategory = {
28
+ id: string;
29
+ sections: SACategorySection[];
30
+ };
31
+
32
+ export type SACategorySection = {
33
+ sectionId: string;
34
+ insight: string;
35
+ reflection: string;
36
+ tip: string;
37
+ };
@@ -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]: {
@@ -32,6 +32,7 @@ export type SubmitCategoryFeedbackRequest = {
32
32
  evaluationReflection: string;
33
33
  additionalThoughts: string;
34
34
  };
35
+ export type GetSelfAwarenessRequest = undefined;
35
36
 
36
37
  // bankid
37
38
  export type AuthenticateBankIDRequest = undefined;
@@ -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;