heartraite 1.0.44 → 1.0.45
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 +6 -1
- 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 +6 -1
- package/src/types/response.types.ts +1 -0
|
@@ -18,6 +18,7 @@ export declare enum CloudFunction {
|
|
|
18
18
|
HANDLE_LAST_MESSAGE_SEEN = "message/handle-last-message-seen",
|
|
19
19
|
SEND_MESSAGE = "message/send-message",
|
|
20
20
|
GET_MESSAGES = "message/get-messages",
|
|
21
|
+
SUBMIT_PLS_DEMOGRAPHICS = "pls/submit-demographics",
|
|
21
22
|
CALCULATE_PLS_SCORE = "pls/calculate-score",
|
|
22
23
|
CREATE_PLS_INPUT = "pls/create-input",
|
|
23
24
|
CREATE_PLS_ASSESSMENT = "pls/create-assessment",
|
|
@@ -22,6 +22,7 @@ var CloudFunction;
|
|
|
22
22
|
CloudFunction["HANDLE_LAST_MESSAGE_SEEN"] = "message/handle-last-message-seen";
|
|
23
23
|
CloudFunction["SEND_MESSAGE"] = "message/send-message";
|
|
24
24
|
CloudFunction["GET_MESSAGES"] = "message/get-messages";
|
|
25
|
+
CloudFunction["SUBMIT_PLS_DEMOGRAPHICS"] = "pls/submit-demographics";
|
|
25
26
|
CloudFunction["CALCULATE_PLS_SCORE"] = "pls/calculate-score";
|
|
26
27
|
CloudFunction["CREATE_PLS_INPUT"] = "pls/create-input";
|
|
27
28
|
CloudFunction["CREATE_PLS_ASSESSMENT"] = "pls/create-assessment";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CloudFunction } from "../enum";
|
|
2
|
-
import { AddImagesRequest, AuthenticateBankIDRequest, CollectBankIDRequest, CreateBillingPortalRequest, CreateCheckoutSessionRequest, CreateLikeRequest, CreatePLSInputRequest, CreatePLSSubmissionRequest, CreateReportRequest, GetCARequest, GetLikesRequest, 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, GetLikesResponse, 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";
|
|
2
|
+
import { AddImagesRequest, AuthenticateBankIDRequest, CollectBankIDRequest, CreateBillingPortalRequest, CreateCheckoutSessionRequest, CreateLikeRequest, CreatePLSInputRequest, CreatePLSSubmissionRequest, CreateReportRequest, GetCARequest, GetLikesRequest, GetMatchableUserRequest, GetMatchCheckRequest, GetMatchesRequest, GetMatchRequest, GetMessagesRequest, 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, GetCAResponse, GetLikesResponse, GetMatchableUserResponse, GetMatchableUsersResponse, GetMatchCheckResponse, GetMatchesResponse, GetMatchResponse, GetMessagesResponse, GetPLSSubmissionResponse, GetProductsResponse, 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;
|
|
@@ -78,6 +78,10 @@ export type CloudFunctionTypes = {
|
|
|
78
78
|
payload: GetMessagesRequest;
|
|
79
79
|
response: GetMessagesResponse;
|
|
80
80
|
};
|
|
81
|
+
[CloudFunction.SUBMIT_PLS_DEMOGRAPHICS]: {
|
|
82
|
+
payload: SubmitPLSDemographicsRequest;
|
|
83
|
+
response: SubmitPLSDemographicsResponse;
|
|
84
|
+
};
|
|
81
85
|
[CloudFunction.CREATE_PLS_INPUT]: {
|
|
82
86
|
payload: CreatePLSInputRequest;
|
|
83
87
|
response: CreatePLSInputResponse;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FeedbackAgreement, Gender, LikeType, ProviderType, ReportReason } from "../enum";
|
|
2
2
|
import { DeepPartial } from "./helper.types";
|
|
3
|
-
import { Answer } from "./submission.types";
|
|
3
|
+
import { Answer, Demographics } from "./submission.types";
|
|
4
4
|
import { DatingPreferences, UserNotifications, UserProfile } from "./user.types";
|
|
5
5
|
export type RegisterUserRequest = {
|
|
6
6
|
userId: string;
|
|
@@ -67,6 +67,11 @@ export type GetMatchableUserRequest = {
|
|
|
67
67
|
export type GetMatchCheckRequest = {
|
|
68
68
|
userId: string;
|
|
69
69
|
};
|
|
70
|
+
export type SubmitPLSDemographicsRequest = {
|
|
71
|
+
assessmentId: string;
|
|
72
|
+
submissionId: string;
|
|
73
|
+
demographics: Demographics;
|
|
74
|
+
};
|
|
70
75
|
export type CreatePLSInputRequest = {
|
|
71
76
|
questionnaire: Record<string, string>;
|
|
72
77
|
channelId: string;
|
|
@@ -42,6 +42,7 @@ export type CreateLikeResponse = {
|
|
|
42
42
|
};
|
|
43
43
|
export type GetLikesResponse = Like[];
|
|
44
44
|
export type HandleLikeSeenResponse = void;
|
|
45
|
+
export type SubmitPLSDemographicsResponse = void;
|
|
45
46
|
export type CreatePLSInputResponse = void;
|
|
46
47
|
export type CreatePLSSubmissionResponse = Submission;
|
|
47
48
|
export type GetPLSSubmissionResponse = Submission;
|
package/package.json
CHANGED
|
@@ -18,6 +18,7 @@ export enum CloudFunction {
|
|
|
18
18
|
HANDLE_LAST_MESSAGE_SEEN = "message/handle-last-message-seen",
|
|
19
19
|
SEND_MESSAGE = "message/send-message",
|
|
20
20
|
GET_MESSAGES = "message/get-messages",
|
|
21
|
+
SUBMIT_PLS_DEMOGRAPHICS = "pls/submit-demographics",
|
|
21
22
|
CALCULATE_PLS_SCORE = "pls/calculate-score",
|
|
22
23
|
CREATE_PLS_INPUT = "pls/create-input",
|
|
23
24
|
CREATE_PLS_ASSESSMENT = "pls/create-assessment",
|
|
@@ -29,6 +29,7 @@ import {
|
|
|
29
29
|
SubmitAnswerRequest,
|
|
30
30
|
SubmitCategoryFeedbackRequest,
|
|
31
31
|
SubmitPLSCategoryFeedbackRequest,
|
|
32
|
+
SubmitPLSDemographicsRequest,
|
|
32
33
|
UpdatePLSAnswerRequest,
|
|
33
34
|
UpdateQuestionsRequest,
|
|
34
35
|
UpdateUserRequest,
|
|
@@ -64,6 +65,7 @@ import {
|
|
|
64
65
|
SubmitAnswerResponse,
|
|
65
66
|
SubmitCategoryFeedbackResponse,
|
|
66
67
|
SubmitPLSCategoryFeedbackResponse,
|
|
68
|
+
SubmitPLSDemographicsResponse,
|
|
67
69
|
UpdatePLSAnswerResponse,
|
|
68
70
|
UpdateQuestionsResponse,
|
|
69
71
|
UpdateUserResponse,
|
|
@@ -160,6 +162,10 @@ export type CloudFunctionTypes = {
|
|
|
160
162
|
};
|
|
161
163
|
|
|
162
164
|
// pls
|
|
165
|
+
[CloudFunction.SUBMIT_PLS_DEMOGRAPHICS]: {
|
|
166
|
+
payload: SubmitPLSDemographicsRequest;
|
|
167
|
+
response: SubmitPLSDemographicsResponse;
|
|
168
|
+
};
|
|
163
169
|
[CloudFunction.CREATE_PLS_INPUT]: {
|
|
164
170
|
payload: CreatePLSInputRequest;
|
|
165
171
|
response: CreatePLSInputResponse;
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
ReportReason,
|
|
7
7
|
} from "../enum";
|
|
8
8
|
import { DeepPartial } from "./helper.types";
|
|
9
|
-
import { Answer } from "./submission.types";
|
|
9
|
+
import { Answer, Demographics } from "./submission.types";
|
|
10
10
|
import {
|
|
11
11
|
DatingPreferences,
|
|
12
12
|
UserNotifications,
|
|
@@ -68,6 +68,11 @@ export type GetMatchableUserRequest = { userId: string };
|
|
|
68
68
|
export type GetMatchCheckRequest = { userId: string };
|
|
69
69
|
|
|
70
70
|
// pls
|
|
71
|
+
export type SubmitPLSDemographicsRequest = {
|
|
72
|
+
assessmentId: string;
|
|
73
|
+
submissionId: string;
|
|
74
|
+
demographics: Demographics;
|
|
75
|
+
};
|
|
71
76
|
export type CreatePLSInputRequest = {
|
|
72
77
|
questionnaire: Record<string, string>;
|
|
73
78
|
channelId: string;
|
|
@@ -55,6 +55,7 @@ export type GetLikesResponse = Like[];
|
|
|
55
55
|
export type HandleLikeSeenResponse = void;
|
|
56
56
|
|
|
57
57
|
// pls
|
|
58
|
+
export type SubmitPLSDemographicsResponse = void;
|
|
58
59
|
export type CreatePLSInputResponse = void;
|
|
59
60
|
export type CreatePLSSubmissionResponse = Submission;
|
|
60
61
|
export type GetPLSSubmissionResponse = Submission;
|