heartraite 1.0.60 → 1.0.62
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 +2 -1
- package/dist/enum/cloudfunction.enum.js +1 -0
- package/dist/enum/firestore.enum.d.ts +1 -2
- package/dist/enum/firestore.enum.js +0 -1
- package/dist/types/ca.types.d.ts +13 -0
- package/dist/types/cloud-function-types.d.ts +6 -2
- package/dist/types/match.types.d.ts +1 -0
- 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/enum/firestore.enum.ts +0 -1
- package/src/types/ca.types.ts +16 -0
- package/src/types/cloud-function-types.ts +6 -0
- package/src/types/match.types.ts +1 -0
- package/src/types/request.types.ts +6 -0
- package/src/types/response.types.ts +1 -0
|
@@ -38,5 +38,6 @@ export declare enum CloudFunction {
|
|
|
38
38
|
CREATE_CHECKOUT_SESSION = "stripe/create-checkout-session",
|
|
39
39
|
REGISTER_ONBOARDING = "user/register-onboarding",
|
|
40
40
|
UPDATE_USER = "user/update-user",
|
|
41
|
-
GET_CURRENT_USER = "user/get-current-user"
|
|
41
|
+
GET_CURRENT_USER = "user/get-current-user",
|
|
42
|
+
DELETE_USER = "user/delete-user"
|
|
42
43
|
}
|
|
@@ -43,4 +43,5 @@ var CloudFunction;
|
|
|
43
43
|
CloudFunction["REGISTER_ONBOARDING"] = "user/register-onboarding";
|
|
44
44
|
CloudFunction["UPDATE_USER"] = "user/update-user";
|
|
45
45
|
CloudFunction["GET_CURRENT_USER"] = "user/get-current-user";
|
|
46
|
+
CloudFunction["DELETE_USER"] = "user/delete-user";
|
|
46
47
|
})(CloudFunction || (exports.CloudFunction = CloudFunction = {}));
|
|
@@ -14,8 +14,7 @@ export declare enum FirestoreCollection {
|
|
|
14
14
|
PLS_INPUTS = "pls_inputs",
|
|
15
15
|
PLS_ASSESSMENTS = "pls_assessments",
|
|
16
16
|
PLS_SCORES = "pls_scores",
|
|
17
|
-
PENDING_USERS = "pending_users"
|
|
18
|
-
DELETED_USERS = "deleted_users"
|
|
17
|
+
PENDING_USERS = "pending_users"
|
|
19
18
|
}
|
|
20
19
|
export declare enum ConversationCollection {
|
|
21
20
|
MESSAGES = "messages"
|
|
@@ -19,7 +19,6 @@ var FirestoreCollection;
|
|
|
19
19
|
FirestoreCollection["PLS_ASSESSMENTS"] = "pls_assessments";
|
|
20
20
|
FirestoreCollection["PLS_SCORES"] = "pls_scores";
|
|
21
21
|
FirestoreCollection["PENDING_USERS"] = "pending_users";
|
|
22
|
-
FirestoreCollection["DELETED_USERS"] = "deleted_users";
|
|
23
22
|
})(FirestoreCollection || (exports.FirestoreCollection = FirestoreCollection = {}));
|
|
24
23
|
var ConversationCollection;
|
|
25
24
|
(function (ConversationCollection) {
|
package/dist/types/ca.types.d.ts
CHANGED
|
@@ -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, 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, 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, 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";
|
|
4
4
|
export type CloudFunctionTypes = {
|
|
5
5
|
[CloudFunction.REGISTER_USER]: {
|
|
6
6
|
payload: RegisterUserRequest;
|
|
@@ -142,4 +142,8 @@ export type CloudFunctionTypes = {
|
|
|
142
142
|
payload: GetUserRequest;
|
|
143
143
|
response: GetUserResponse;
|
|
144
144
|
};
|
|
145
|
+
[CloudFunction.DELETE_USER]: {
|
|
146
|
+
payload: DeleteUserRequest;
|
|
147
|
+
response: DeleteUserResponse;
|
|
148
|
+
};
|
|
145
149
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FeedbackAgreement, Gender, LikeType, ProviderType, ReportReason } from "../enum";
|
|
1
|
+
import { FeedbackAgreement, Gender, LikeType, ProviderType, ReportReason, UserDeletionReason } from "../enum";
|
|
2
2
|
import { DeepPartial } from "./helper.types";
|
|
3
3
|
import { Answer, Demographics } from "./submission.types";
|
|
4
4
|
import { DatingPreferences, UserNotifications, UserProfile } from "./user.types";
|
|
@@ -133,6 +133,11 @@ export type UpdateUserRequest = {
|
|
|
133
133
|
lng: number;
|
|
134
134
|
};
|
|
135
135
|
};
|
|
136
|
+
export type DeleteUserRequest = {
|
|
137
|
+
validationPhrase: string;
|
|
138
|
+
deletionReason: UserDeletionReason;
|
|
139
|
+
customDeletionReason?: string;
|
|
140
|
+
};
|
|
136
141
|
export type GetPLSScoresRequest = undefined;
|
|
137
142
|
export type AddImagesRequest = {
|
|
138
143
|
images: string[];
|
|
@@ -62,6 +62,7 @@ export type GetProductsResponse = StripeProduct[];
|
|
|
62
62
|
export type RegisterOnboardingResponse = User;
|
|
63
63
|
export type GetUserResponse = User;
|
|
64
64
|
export type UpdateUserResponse = User;
|
|
65
|
+
export type DeleteUserResponse = void;
|
|
65
66
|
export type AddImagesResponse = {
|
|
66
67
|
images: string[];
|
|
67
68
|
thumbnail: string;
|
package/package.json
CHANGED
package/src/types/ca.types.ts
CHANGED
|
@@ -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
|
+
};
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
CreatePLSInputRequest,
|
|
10
10
|
CreatePLSSubmissionRequest,
|
|
11
11
|
CreateReportRequest,
|
|
12
|
+
DeleteUserRequest,
|
|
12
13
|
GetCARequest,
|
|
13
14
|
GetLikesRequest,
|
|
14
15
|
GetMatchableUserRequest,
|
|
@@ -45,6 +46,7 @@ import {
|
|
|
45
46
|
CreatePLSInputResponse,
|
|
46
47
|
CreatePLSSubmissionResponse,
|
|
47
48
|
CreateReportResponse,
|
|
49
|
+
DeleteUserResponse,
|
|
48
50
|
GetCAResponse,
|
|
49
51
|
GetLikesResponse,
|
|
50
52
|
GetMatchableUserResponse,
|
|
@@ -240,4 +242,8 @@ export type CloudFunctionTypes = {
|
|
|
240
242
|
payload: GetUserRequest;
|
|
241
243
|
response: GetUserResponse;
|
|
242
244
|
};
|
|
245
|
+
[CloudFunction.DELETE_USER]: {
|
|
246
|
+
payload: DeleteUserRequest;
|
|
247
|
+
response: DeleteUserResponse;
|
|
248
|
+
};
|
|
243
249
|
};
|
package/src/types/match.types.ts
CHANGED
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
LikeType,
|
|
5
5
|
ProviderType,
|
|
6
6
|
ReportReason,
|
|
7
|
+
UserDeletionReason,
|
|
7
8
|
} from "../enum";
|
|
8
9
|
import { DeepPartial } from "./helper.types";
|
|
9
10
|
import { Answer, Demographics } from "./submission.types";
|
|
@@ -137,6 +138,11 @@ export type UpdateUserRequest = {
|
|
|
137
138
|
>;
|
|
138
139
|
geoLocation?: { lat: number; lng: number };
|
|
139
140
|
};
|
|
141
|
+
export type DeleteUserRequest = {
|
|
142
|
+
validationPhrase: string;
|
|
143
|
+
deletionReason: UserDeletionReason;
|
|
144
|
+
customDeletionReason?: string;
|
|
145
|
+
};
|
|
140
146
|
|
|
141
147
|
// score
|
|
142
148
|
export type GetPLSScoresRequest = undefined;
|
|
@@ -83,6 +83,7 @@ export type GetProductsResponse = StripeProduct[];
|
|
|
83
83
|
export type RegisterOnboardingResponse = User;
|
|
84
84
|
export type GetUserResponse = User;
|
|
85
85
|
export type UpdateUserResponse = User;
|
|
86
|
+
export type DeleteUserResponse = void;
|
|
86
87
|
|
|
87
88
|
// storage
|
|
88
89
|
export type AddImagesResponse = {
|