heartraite 1.0.68 → 1.0.70

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) {
@@ -8,7 +8,7 @@ export type CA = {
8
8
  userId: string;
9
9
  completed: boolean;
10
10
  answers: Record<QuestionId, Answer>;
11
- categoryEvaluations?: Record<CategoryId, CategoryEvaluation>;
11
+ categoryEvaluations: Record<CategoryId, CategoryEvaluation>;
12
12
  };
13
13
  export type CAScore = {
14
14
  created: string;
@@ -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;
@@ -1,50 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- // export type User = {
4
- // id: string;
5
- // intro: string;
6
- // firstName: string;
7
- // state: string;
8
- // birth: string;
9
- // gender: string;
10
- // interestedIn: string;
11
- // zodiacSign: string;
12
- // images: string[];
13
- // profileInput: ProfileInput;
14
- // lat: number;
15
- // lng: number;
16
- // radius: number;
17
- // geohash: string;
18
- // minAge: number;
19
- // maxAge: number;
20
- // aiSummary?: string;
21
- // attachedSummary: boolean;
22
- // thumbnail: string;
23
- // image: string;
24
- // bankIDVerified: boolean;
25
- // emailNotificationsEnabled: boolean;
26
- // pushNotificationsEnabled: boolean;
27
- // pushNotificationSettings: NotificationSettings;
28
- // registrationReferralAllowed: boolean;
29
- // };
30
- // export type UpdateUserData = {
31
- // intro: string;
32
- // firstName: string;
33
- // state: string;
34
- // birth: string;
35
- // profileInput: ProfileInput;
36
- // lat: number;
37
- // lng: number;
38
- // radius: number;
39
- // geohash: string;
40
- // minAge: number;
41
- // maxAge: number;
42
- // interestedIn: string; // maybe to be removed before release
43
- // attachedSummary: boolean;
44
- // expoPushToken?: string;
45
- // pushNotificationsEnabled: boolean;
46
- // emailNotificationsEnabled: boolean;
47
- // pushNotificationSettings?: NotificationSettings;
48
- // emailNotificationSettings?: NotificationSettings;
49
- // };
50
- // export type ProfileInput = Record<string, string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heartraite",
3
- "version": "1.0.68",
3
+ "version": "1.0.70",
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 {
@@ -11,7 +11,7 @@ export type CA = {
11
11
  userId: string;
12
12
  completed: boolean;
13
13
  answers: Record<QuestionId, Answer>;
14
- categoryEvaluations?: Record<CategoryId, CategoryEvaluation>;
14
+ categoryEvaluations: Record<CategoryId, CategoryEvaluation>;
15
15
  };
16
16
 
17
17
  export type CAScore = {
@@ -213,12 +213,6 @@ export type CloudFunctionTypes = {
213
213
  response: GetSelfAwarenessReponse;
214
214
  };
215
215
 
216
- // score
217
- [CloudFunction.GET_PLS_SCORES]: {
218
- payload: GetPLSScoresRequest;
219
- response: GetPLSScoresResponse;
220
- };
221
-
222
216
  // storage
223
217
  [CloudFunction.ADD_IMAGES]: {
224
218
  payload: AddImagesRequest;
@@ -54,54 +54,3 @@ export type DatingPreferences = {
54
54
  interestedIn: Gender[];
55
55
  distanceRadius: number;
56
56
  };
57
-
58
- // export type User = {
59
- // id: string;
60
- // intro: string;
61
- // firstName: string;
62
- // state: string;
63
- // birth: string;
64
- // gender: string;
65
- // interestedIn: string;
66
- // zodiacSign: string;
67
- // images: string[];
68
- // profileInput: ProfileInput;
69
- // lat: number;
70
- // lng: number;
71
- // radius: number;
72
- // geohash: string;
73
- // minAge: number;
74
- // maxAge: number;
75
- // aiSummary?: string;
76
- // attachedSummary: boolean;
77
- // thumbnail: string;
78
- // image: string;
79
- // bankIDVerified: boolean;
80
- // emailNotificationsEnabled: boolean;
81
- // pushNotificationsEnabled: boolean;
82
- // pushNotificationSettings: NotificationSettings;
83
- // registrationReferralAllowed: boolean;
84
- // };
85
-
86
- // export type UpdateUserData = {
87
- // intro: string;
88
- // firstName: string;
89
- // state: string;
90
- // birth: string;
91
- // profileInput: ProfileInput;
92
- // lat: number;
93
- // lng: number;
94
- // radius: number;
95
- // geohash: string;
96
- // minAge: number;
97
- // maxAge: number;
98
- // interestedIn: string; // maybe to be removed before release
99
- // attachedSummary: boolean;
100
- // expoPushToken?: string;
101
- // pushNotificationsEnabled: boolean;
102
- // emailNotificationsEnabled: boolean;
103
- // pushNotificationSettings?: NotificationSettings;
104
- // emailNotificationSettings?: NotificationSettings;
105
- // };
106
-
107
- // export type ProfileInput = Record<string, string>;