heartraite 1.0.69 → 1.0.71
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 +0 -1
- package/dist/enum/cloudfunction.enum.js +0 -1
- package/dist/enum/iap.enum.d.ts +3 -0
- package/dist/enum/iap.enum.js +7 -0
- package/dist/enum/index.d.ts +1 -0
- package/dist/enum/index.js +1 -0
- package/dist/enum/user.enum.d.ts +2 -1
- package/dist/enum/user.enum.js +1 -0
- package/dist/types/cloud-function-types.d.ts +2 -6
- package/dist/types/request.types.d.ts +1 -1
- package/package.json +1 -1
- package/src/enum/cloudfunction.enum.ts +0 -1
- package/src/enum/iap.enum.ts +3 -0
- package/src/enum/index.ts +1 -0
- package/src/enum/user.enum.ts +1 -0
- package/src/types/cloud-function-types.ts +0 -8
- package/src/types/request.types.ts +1 -1
|
@@ -31,7 +31,6 @@ export declare enum CloudFunction {
|
|
|
31
31
|
UPDATE_QUESTIONS = "rating/update-quesitons",
|
|
32
32
|
CREATE_REPORT = "report/create-report",
|
|
33
33
|
GET_SELF_AWARENESS = "sa/get-sa",
|
|
34
|
-
GET_PLS_SCORES = "score/get-pls-scores",
|
|
35
34
|
ADD_IMAGES = "storage/add-images",
|
|
36
35
|
GET_PRODUCTS = "stripe/get-products",
|
|
37
36
|
STRIPE_WEBWOOK = "stripe/webhook",
|
|
@@ -35,7 +35,6 @@ var CloudFunction;
|
|
|
35
35
|
CloudFunction["UPDATE_QUESTIONS"] = "rating/update-quesitons";
|
|
36
36
|
CloudFunction["CREATE_REPORT"] = "report/create-report";
|
|
37
37
|
CloudFunction["GET_SELF_AWARENESS"] = "sa/get-sa";
|
|
38
|
-
CloudFunction["GET_PLS_SCORES"] = "score/get-pls-scores";
|
|
39
38
|
CloudFunction["ADD_IMAGES"] = "storage/add-images";
|
|
40
39
|
CloudFunction["GET_PRODUCTS"] = "stripe/get-products";
|
|
41
40
|
CloudFunction["STRIPE_WEBWOOK"] = "stripe/webhook";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IAPProductIdentifier = void 0;
|
|
4
|
+
var IAPProductIdentifier;
|
|
5
|
+
(function (IAPProductIdentifier) {
|
|
6
|
+
IAPProductIdentifier["UNLOCK_SA"] = "unlock_sa";
|
|
7
|
+
})(IAPProductIdentifier || (exports.IAPProductIdentifier = IAPProductIdentifier = {}));
|
package/dist/enum/index.d.ts
CHANGED
package/dist/enum/index.js
CHANGED
|
@@ -19,6 +19,7 @@ __exportStar(require("./ca.enum"), exports);
|
|
|
19
19
|
__exportStar(require("./cloudfunction.enum"), exports);
|
|
20
20
|
__exportStar(require("./evaluation.enum"), exports);
|
|
21
21
|
__exportStar(require("./firestore.enum"), exports);
|
|
22
|
+
__exportStar(require("./iap.enum"), exports);
|
|
22
23
|
__exportStar(require("./like.enum"), exports);
|
|
23
24
|
__exportStar(require("./report.enum"), exports);
|
|
24
25
|
__exportStar(require("./gender.enum"), exports);
|
package/dist/enum/user.enum.d.ts
CHANGED
|
@@ -6,7 +6,8 @@ export declare enum UserClaim {
|
|
|
6
6
|
PLAN = "plan",
|
|
7
7
|
CA_STATUS = "ca_status",
|
|
8
8
|
BANKID_VERIFIED = "bankid_verified",
|
|
9
|
-
ONBOARDING_COMPLETED = "onboarding_completed"
|
|
9
|
+
ONBOARDING_COMPLETED = "onboarding_completed",
|
|
10
|
+
SA_UNLOCKED = "sa_unlocked"
|
|
10
11
|
}
|
|
11
12
|
export declare enum UserPlan {
|
|
12
13
|
BASIC = "basic",
|
package/dist/enum/user.enum.js
CHANGED
|
@@ -12,6 +12,7 @@ var UserClaim;
|
|
|
12
12
|
UserClaim["CA_STATUS"] = "ca_status";
|
|
13
13
|
UserClaim["BANKID_VERIFIED"] = "bankid_verified";
|
|
14
14
|
UserClaim["ONBOARDING_COMPLETED"] = "onboarding_completed";
|
|
15
|
+
UserClaim["SA_UNLOCKED"] = "sa_unlocked";
|
|
15
16
|
})(UserClaim || (exports.UserClaim = UserClaim = {}));
|
|
16
17
|
var UserPlan;
|
|
17
18
|
(function (UserPlan) {
|
|
@@ -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,
|
|
3
|
-
import { AddImagesResponse, AuthenticateBankIDResponse, CollectBankIDResponse, CreateBillingPortalResponse, CreateCheckoutSessionResponse, CreateLikeResponse, CreatePLSInputResponse, CreatePLSSubmissionResponse, CreateReportResponse, DeleteUserResponse, GetCAResponse, GetLikesResponse, GetMatchableUserResponse, GetMatchableUsersResponse, GetMatchCheckResponse, GetMatchesResponse, GetMatchResponse, GetMessagesResponse,
|
|
2
|
+
import { AddImagesRequest, AuthenticateBankIDRequest, CollectBankIDRequest, CreateBillingPortalRequest, CreateCheckoutSessionRequest, CreateLikeRequest, CreatePLSInputRequest, CreatePLSSubmissionRequest, CreateReportRequest, DeleteUserRequest, GetCARequest, GetLikesRequest, GetMatchableUserRequest, GetMatchCheckRequest, GetMatchesRequest, GetMatchRequest, GetMessagesRequest, 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, 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;
|
|
@@ -114,10 +114,6 @@ export type CloudFunctionTypes = {
|
|
|
114
114
|
payload: GetSelfAwarenessRequest;
|
|
115
115
|
response: GetSelfAwarenessReponse;
|
|
116
116
|
};
|
|
117
|
-
[CloudFunction.GET_PLS_SCORES]: {
|
|
118
|
-
payload: GetPLSScoresRequest;
|
|
119
|
-
response: GetPLSScoresResponse;
|
|
120
|
-
};
|
|
121
117
|
[CloudFunction.ADD_IMAGES]: {
|
|
122
118
|
payload: AddImagesRequest;
|
|
123
119
|
response: AddImagesResponse;
|
package/package.json
CHANGED
|
@@ -31,7 +31,6 @@ export enum CloudFunction {
|
|
|
31
31
|
UPDATE_QUESTIONS = "rating/update-quesitons",
|
|
32
32
|
CREATE_REPORT = "report/create-report",
|
|
33
33
|
GET_SELF_AWARENESS = "sa/get-sa",
|
|
34
|
-
GET_PLS_SCORES = "score/get-pls-scores",
|
|
35
34
|
ADD_IMAGES = "storage/add-images",
|
|
36
35
|
GET_PRODUCTS = "stripe/get-products",
|
|
37
36
|
STRIPE_WEBWOOK = "stripe/webhook",
|
package/src/enum/index.ts
CHANGED
package/src/enum/user.enum.ts
CHANGED
|
@@ -17,7 +17,6 @@ import {
|
|
|
17
17
|
GetMatchesRequest,
|
|
18
18
|
GetMatchRequest,
|
|
19
19
|
GetMessagesRequest,
|
|
20
|
-
GetPLSScoresRequest,
|
|
21
20
|
GetPLSSubmissionRequest,
|
|
22
21
|
GetProductsRequest,
|
|
23
22
|
GetSelfAwarenessRequest,
|
|
@@ -56,7 +55,6 @@ import {
|
|
|
56
55
|
GetMatchesResponse,
|
|
57
56
|
GetMatchResponse,
|
|
58
57
|
GetMessagesResponse,
|
|
59
|
-
GetPLSScoresResponse,
|
|
60
58
|
GetPLSSubmissionResponse,
|
|
61
59
|
GetProductsResponse,
|
|
62
60
|
GetSelfAwarenessReponse,
|
|
@@ -213,12 +211,6 @@ export type CloudFunctionTypes = {
|
|
|
213
211
|
response: GetSelfAwarenessReponse;
|
|
214
212
|
};
|
|
215
213
|
|
|
216
|
-
// score
|
|
217
|
-
[CloudFunction.GET_PLS_SCORES]: {
|
|
218
|
-
payload: GetPLSScoresRequest;
|
|
219
|
-
response: GetPLSScoresResponse;
|
|
220
|
-
};
|
|
221
|
-
|
|
222
214
|
// storage
|
|
223
215
|
[CloudFunction.ADD_IMAGES]: {
|
|
224
216
|
payload: AddImagesRequest;
|
|
@@ -61,7 +61,7 @@ export type GetLikesRequest = { limit: number; offset: string };
|
|
|
61
61
|
export type HandleLikeSeenRequest = { userId: string };
|
|
62
62
|
|
|
63
63
|
// match
|
|
64
|
-
export type RemoveMatchRequest = {
|
|
64
|
+
export type RemoveMatchRequest = { matchId: string };
|
|
65
65
|
export type GetMatchRequest = { matchId: string };
|
|
66
66
|
export type HandleMatchSeenRequest = { userId: string };
|
|
67
67
|
export type GetMatchesRequest = { limit: number; offset: string };
|