heartraite 1.0.117 → 1.0.119
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 +5 -1
- package/dist/types/event.types.d.ts +1 -0
- package/dist/types/response.types.d.ts +2 -0
- package/package.json +1 -1
- package/src/enum/cloudfunction.enum.ts +1 -0
- package/src/types/cloud-function-types.ts +7 -0
- package/src/types/event.types.ts +1 -0
- package/src/types/response.types.ts +4 -0
|
@@ -6,6 +6,7 @@ export declare enum CloudFunction {
|
|
|
6
6
|
SUBMIT_FEEDBACK = "feedback/submit-feedback",
|
|
7
7
|
GET_CA = "ca/get-ca",
|
|
8
8
|
SUBMIT_ANSWER = "ca/submit-answer",
|
|
9
|
+
GET_USER_EVENTS = "event/get-user-events",
|
|
9
10
|
SUBMIT_CATEGORY_FEEDBACK = "ca/submit-category-feedback",
|
|
10
11
|
CREATE_LIKE = "like/create-like",
|
|
11
12
|
GET_LIKES = "like/get-likes",
|
|
@@ -10,6 +10,7 @@ var CloudFunction;
|
|
|
10
10
|
CloudFunction["SUBMIT_FEEDBACK"] = "feedback/submit-feedback";
|
|
11
11
|
CloudFunction["GET_CA"] = "ca/get-ca";
|
|
12
12
|
CloudFunction["SUBMIT_ANSWER"] = "ca/submit-answer";
|
|
13
|
+
CloudFunction["GET_USER_EVENTS"] = "event/get-user-events";
|
|
13
14
|
CloudFunction["SUBMIT_CATEGORY_FEEDBACK"] = "ca/submit-category-feedback";
|
|
14
15
|
CloudFunction["CREATE_LIKE"] = "like/create-like";
|
|
15
16
|
CloudFunction["GET_LIKES"] = "like/get-likes";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CloudFunction } from "../enum";
|
|
2
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 } 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 } from "./response.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 } 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_USER_EVENTS]: {
|
|
34
|
+
payload: undefined;
|
|
35
|
+
response: GetUserEventsResponse;
|
|
36
|
+
};
|
|
33
37
|
[CloudFunction.SUBMIT_FEEDBACK]: {
|
|
34
38
|
payload: SubmitFeedbackRequest;
|
|
35
39
|
response: SubmitFeedbackResponse;
|
|
@@ -9,6 +9,7 @@ import { CA } from "./ca.types";
|
|
|
9
9
|
import { SelfAwareness } from "./sa.types";
|
|
10
10
|
import { PLSScore } from "./pls.types";
|
|
11
11
|
import { AdvancedMatch } from "./am.types";
|
|
12
|
+
import { EventParticipation } from "./event.types";
|
|
12
13
|
export type SyncAffiliateResponse = void;
|
|
13
14
|
export type RegisterUserResponse = {
|
|
14
15
|
success: boolean;
|
|
@@ -31,6 +32,7 @@ export type SubmitAnswerResponse = {
|
|
|
31
32
|
categoryEvaluation?: CategoryEvaluation;
|
|
32
33
|
};
|
|
33
34
|
export type SubmitCategoryFeedbackResponse = CategoryEvaluation;
|
|
35
|
+
export type GetUserEventsResponse = EventParticipation[];
|
|
34
36
|
export type SubmitFeedbackResponse = undefined;
|
|
35
37
|
export type HandleLastMessageSeenResponse = undefined;
|
|
36
38
|
export type SendMessageResponse = Message;
|
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@ export enum CloudFunction {
|
|
|
6
6
|
SUBMIT_FEEDBACK = "feedback/submit-feedback",
|
|
7
7
|
GET_CA = "ca/get-ca",
|
|
8
8
|
SUBMIT_ANSWER = "ca/submit-answer",
|
|
9
|
+
GET_USER_EVENTS = "event/get-user-events",
|
|
9
10
|
SUBMIT_CATEGORY_FEEDBACK = "ca/submit-category-feedback",
|
|
10
11
|
CREATE_LIKE = "like/create-like",
|
|
11
12
|
GET_LIKES = "like/get-likes",
|
|
@@ -77,6 +77,7 @@ import {
|
|
|
77
77
|
UpdateUserResponse,
|
|
78
78
|
SubmitFeedbackResponse,
|
|
79
79
|
SyncAffiliateResponse,
|
|
80
|
+
GetUserEventsResponse,
|
|
80
81
|
} from "./response.types";
|
|
81
82
|
|
|
82
83
|
// Define a mapping of Cloud Functions to payload and response types
|
|
@@ -116,6 +117,12 @@ export type CloudFunctionTypes = {
|
|
|
116
117
|
response: SubmitCategoryFeedbackResponse;
|
|
117
118
|
};
|
|
118
119
|
|
|
120
|
+
// event
|
|
121
|
+
[CloudFunction.GET_USER_EVENTS]: {
|
|
122
|
+
payload: undefined;
|
|
123
|
+
response: GetUserEventsResponse;
|
|
124
|
+
};
|
|
125
|
+
|
|
119
126
|
// feedback
|
|
120
127
|
[CloudFunction.SUBMIT_FEEDBACK]: {
|
|
121
128
|
payload: SubmitFeedbackRequest;
|
package/src/types/event.types.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { CA } from "./ca.types";
|
|
|
9
9
|
import { SelfAwareness } from "./sa.types";
|
|
10
10
|
import { PLSScore } from "./pls.types";
|
|
11
11
|
import { AdvancedMatch } from "./am.types";
|
|
12
|
+
import { EventParticipation } from "./event.types";
|
|
12
13
|
|
|
13
14
|
// affiliate
|
|
14
15
|
export type SyncAffiliateResponse = void;
|
|
@@ -41,6 +42,9 @@ export type SubmitAnswerResponse = {
|
|
|
41
42
|
};
|
|
42
43
|
export type SubmitCategoryFeedbackResponse = CategoryEvaluation;
|
|
43
44
|
|
|
45
|
+
// event
|
|
46
|
+
export type GetUserEventsResponse = EventParticipation[];
|
|
47
|
+
|
|
44
48
|
// feedback
|
|
45
49
|
export type SubmitFeedbackResponse = undefined;
|
|
46
50
|
|