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.
@@ -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,3 @@
1
+ export declare enum IAPProductIdentifier {
2
+ UNLOCK_SA = "unlock_sa"
3
+ }
@@ -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 = {}));
@@ -3,6 +3,7 @@ export * from "./ca.enum";
3
3
  export * from "./cloudfunction.enum";
4
4
  export * from "./evaluation.enum";
5
5
  export * from "./firestore.enum";
6
+ export * from "./iap.enum";
6
7
  export * from "./like.enum";
7
8
  export * from "./report.enum";
8
9
  export * from "./gender.enum";
@@ -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);
@@ -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",
@@ -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, GetPLSScoresRequest, 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, GetPLSScoresResponse, GetPLSSubmissionResponse, GetProductsResponse, GetSelfAwarenessReponse, 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, 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;
@@ -49,7 +49,7 @@ export type HandleLikeSeenRequest = {
49
49
  userId: string;
50
50
  };
51
51
  export type RemoveMatchRequest = {
52
- recipientId: string;
52
+ matchId: string;
53
53
  };
54
54
  export type GetMatchRequest = {
55
55
  matchId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heartraite",
3
- "version": "1.0.69",
3
+ "version": "1.0.71",
4
4
  "description": "Heartraite npm package for common functionality",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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",
@@ -0,0 +1,3 @@
1
+ export enum IAPProductIdentifier {
2
+ UNLOCK_SA = "unlock_sa",
3
+ }
package/src/enum/index.ts CHANGED
@@ -3,6 +3,7 @@ export * from "./ca.enum";
3
3
  export * from "./cloudfunction.enum";
4
4
  export * from "./evaluation.enum";
5
5
  export * from "./firestore.enum";
6
+ export * from "./iap.enum";
6
7
  export * from "./like.enum";
7
8
  export * from "./report.enum";
8
9
  export * from "./gender.enum";
@@ -8,6 +8,7 @@ export enum UserClaim {
8
8
  CA_STATUS = "ca_status",
9
9
  BANKID_VERIFIED = "bankid_verified",
10
10
  ONBOARDING_COMPLETED = "onboarding_completed",
11
+ SA_UNLOCKED = "sa_unlocked",
11
12
  }
12
13
 
13
14
  export enum UserPlan {
@@ -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 = { recipientId: string };
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 };