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: CreateLikeRequest;
35
- response: CreateLikeResponse;
34
+ payload: GetLikesRequest;
35
+ response: GetLikesResponse;
36
36
  };
37
37
  [CloudFunction.HANDLE_LIKE_SEEN]: {
38
38
  payload: HandleLikeSeenRequest;
@@ -5,6 +5,7 @@ export type MatchableUser = {
5
5
  matchId?: string;
6
6
  conversationId?: string;
7
7
  distance: number;
8
+ bankIdVerified: boolean;
8
9
  profile: UserProfile;
9
10
  compatibility: MatchCompatibility;
10
11
  matchStatus: MatchStatus;
@@ -1,4 +1,4 @@
1
- import { CAStatus, Gender, NotificationSetting, UserLanguage } from "../enum";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heartraite",
3
- "version": "1.0.32",
3
+ "version": "1.0.34",
4
4
  "description": "Heartraite npm package for common functionality",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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: CreateLikeRequest;
109
- response: CreateLikeResponse;
110
+ payload: GetLikesRequest;
111
+ response: GetLikesResponse;
110
112
  };
111
113
  [CloudFunction.HANDLE_LIKE_SEEN]: {
112
114
  payload: HandleLikeSeenRequest;
@@ -6,6 +6,7 @@ export type MatchableUser = {
6
6
  matchId?: string;
7
7
  conversationId?: string;
8
8
  distance: number;
9
+ bankIdVerified: boolean;
9
10
  profile: UserProfile;
10
11
  compatibility: MatchCompatibility;
11
12
  matchStatus: MatchStatus;
@@ -1,4 +1,4 @@
1
- import { CAStatus, Gender, NotificationSetting, UserLanguage } from "../enum";
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
  };