heartraite 1.0.32 → 1.0.34
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CloudFunction } from "../enum";
|
|
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";
|
|
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";
|
|
4
4
|
export type CloudFunctionTypes = {
|
|
5
5
|
[CloudFunction.REGISTER_USER]: {
|
|
6
6
|
payload: RegisterUserRequest;
|
|
@@ -31,8 +31,8 @@ export type CloudFunctionTypes = {
|
|
|
31
31
|
response: CreateLikeResponse;
|
|
32
32
|
};
|
|
33
33
|
[CloudFunction.GET_LIKES]: {
|
|
34
|
-
payload:
|
|
35
|
-
response:
|
|
34
|
+
payload: GetLikesRequest;
|
|
35
|
+
response: GetLikesResponse;
|
|
36
36
|
};
|
|
37
37
|
[CloudFunction.HANDLE_LIKE_SEEN]: {
|
|
38
38
|
payload: HandleLikeSeenRequest;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Gender, NotificationSetting, UserLanguage } from "../enum";
|
|
2
2
|
export type User = {
|
|
3
3
|
id: string;
|
|
4
4
|
email: string;
|
|
@@ -9,9 +9,6 @@ export type User = {
|
|
|
9
9
|
notifications: UserNotifications;
|
|
10
10
|
settings: UserSettings;
|
|
11
11
|
};
|
|
12
|
-
export type UserStatus = {
|
|
13
|
-
caStatus: CAStatus;
|
|
14
|
-
};
|
|
15
12
|
export type UserSettings = {
|
|
16
13
|
language: UserLanguage;
|
|
17
14
|
};
|
package/package.json
CHANGED
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
CreatePLSSubmissionRequest,
|
|
11
11
|
CreateReportRequest,
|
|
12
12
|
GetCARequest,
|
|
13
|
+
GetLikesRequest,
|
|
13
14
|
GetMatchableUserRequest,
|
|
14
15
|
GetMatchCheckRequest,
|
|
15
16
|
GetMatchesRequest,
|
|
@@ -43,6 +44,7 @@ import {
|
|
|
43
44
|
CreatePLSSubmissionResponse,
|
|
44
45
|
CreateReportResponse,
|
|
45
46
|
GetCAResponse,
|
|
47
|
+
GetLikesResponse,
|
|
46
48
|
GetMatchableUserResponse,
|
|
47
49
|
GetMatchableUsersResponse,
|
|
48
50
|
GetMatchCheckResponse,
|
|
@@ -105,8 +107,8 @@ export type CloudFunctionTypes = {
|
|
|
105
107
|
response: CreateLikeResponse;
|
|
106
108
|
};
|
|
107
109
|
[CloudFunction.GET_LIKES]: {
|
|
108
|
-
payload:
|
|
109
|
-
response:
|
|
110
|
+
payload: GetLikesRequest;
|
|
111
|
+
response: GetLikesResponse;
|
|
110
112
|
};
|
|
111
113
|
[CloudFunction.HANDLE_LIKE_SEEN]: {
|
|
112
114
|
payload: HandleLikeSeenRequest;
|
package/src/types/user.types.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Gender, NotificationSetting, UserLanguage } from "../enum";
|
|
2
2
|
|
|
3
3
|
export type User = {
|
|
4
4
|
id: string;
|
|
@@ -11,10 +11,6 @@ export type User = {
|
|
|
11
11
|
settings: UserSettings;
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
export type UserStatus = {
|
|
15
|
-
caStatus: CAStatus;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
14
|
export type UserSettings = {
|
|
19
15
|
language: UserLanguage;
|
|
20
16
|
};
|