heartraite 1.0.112 → 1.0.114

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.
@@ -9,3 +9,11 @@ export declare enum LikeStatus {
9
9
  MATCHED = "matched",
10
10
  REJECTED = "rejected"
11
11
  }
12
+ export declare enum DislikeReason {
13
+ NOT_MY_TYPE = "not_my_type",
14
+ DIFFERENT_LIFESTYLE = "different_lifestyle",
15
+ DIFFERENT_VALUES = "different_values",
16
+ NOT_GENUINE = "not_genuine",
17
+ TO_LONG_DISTANCE = "to_long_distance",
18
+ OTHER = "other"
19
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LikeStatus = exports.LikeType = void 0;
3
+ exports.DislikeReason = exports.LikeStatus = exports.LikeType = void 0;
4
4
  var LikeType;
5
5
  (function (LikeType) {
6
6
  LikeType["LIKE"] = "like";
@@ -14,3 +14,12 @@ var LikeStatus;
14
14
  LikeStatus["MATCHED"] = "matched";
15
15
  LikeStatus["REJECTED"] = "rejected";
16
16
  })(LikeStatus || (exports.LikeStatus = LikeStatus = {}));
17
+ var DislikeReason;
18
+ (function (DislikeReason) {
19
+ DislikeReason["NOT_MY_TYPE"] = "not_my_type";
20
+ DislikeReason["DIFFERENT_LIFESTYLE"] = "different_lifestyle";
21
+ DislikeReason["DIFFERENT_VALUES"] = "different_values";
22
+ DislikeReason["NOT_GENUINE"] = "not_genuine";
23
+ DislikeReason["TO_LONG_DISTANCE"] = "to_long_distance";
24
+ DislikeReason["OTHER"] = "other";
25
+ })(DislikeReason || (exports.DislikeReason = DislikeReason = {}));
@@ -7,7 +7,8 @@ export declare enum UserClaim {
7
7
  CA_STATUS = "ca_status",
8
8
  BANKID_VERIFIED = "bankid_verified",
9
9
  ONBOARDING_COMPLETED = "onboarding_completed",
10
- SA_UNLOCKED = "sa_unlocked"
10
+ SA_UNLOCKED = "sa_unlocked",
11
+ PARTNER_PERMISSIONS = "partner_permissions"
11
12
  }
12
13
  export declare enum UserPlan {
13
14
  BASIC = "basic",
@@ -13,6 +13,7 @@ var UserClaim;
13
13
  UserClaim["BANKID_VERIFIED"] = "bankid_verified";
14
14
  UserClaim["ONBOARDING_COMPLETED"] = "onboarding_completed";
15
15
  UserClaim["SA_UNLOCKED"] = "sa_unlocked";
16
+ UserClaim["PARTNER_PERMISSIONS"] = "partner_permissions";
16
17
  })(UserClaim || (exports.UserClaim = UserClaim = {}));
17
18
  var UserPlan;
18
19
  (function (UserPlan) {
@@ -12,6 +12,7 @@ export * from "./message.types";
12
12
  export * from "./request.types";
13
13
  export * from "./report.types";
14
14
  export * from "./response.types";
15
+ export * from "./partner.types";
15
16
  export * from "./pls.types";
16
17
  export * from "./stripe.types";
17
18
  export * from "./submission.types";
@@ -28,6 +28,7 @@ __exportStar(require("./message.types"), exports);
28
28
  __exportStar(require("./request.types"), exports);
29
29
  __exportStar(require("./report.types"), exports);
30
30
  __exportStar(require("./response.types"), exports);
31
+ __exportStar(require("./partner.types"), exports);
31
32
  __exportStar(require("./pls.types"), exports);
32
33
  __exportStar(require("./stripe.types"), exports);
33
34
  __exportStar(require("./submission.types"), exports);
@@ -0,0 +1,13 @@
1
+ export type Partner = {
2
+ id: string;
3
+ email: string;
4
+ name: string;
5
+ companyName: string;
6
+ phone?: string;
7
+ active: boolean;
8
+ lastUpdated: string;
9
+ role: string;
10
+ created: string;
11
+ permissions: string[];
12
+ createdBy: string;
13
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,4 @@
1
- import { FeedbackAgreement, FeedbackType, Gender, LikeType, ProviderType, ReportReason, UserDeletionReason } from "../enum";
1
+ import { DislikeReason, FeedbackAgreement, FeedbackType, 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, UserConsents, UserDevice, UserNotifications, UserProfile, UserSettings } from "./user.types";
@@ -49,6 +49,8 @@ export type GetMessagesRequest = {
49
49
  export type CreateLikeRequest = {
50
50
  recipientId: string;
51
51
  type: LikeType;
52
+ dislikeReason?: DislikeReason;
53
+ dislikeComment?: string;
52
54
  };
53
55
  export type GetLikesRequest = {
54
56
  limit: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heartraite",
3
- "version": "1.0.112",
3
+ "version": "1.0.114",
4
4
  "description": "Heartraite npm package for common functionality",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -10,3 +10,12 @@ export enum LikeStatus {
10
10
  MATCHED = "matched",
11
11
  REJECTED = "rejected",
12
12
  }
13
+
14
+ export enum DislikeReason {
15
+ NOT_MY_TYPE = "not_my_type",
16
+ DIFFERENT_LIFESTYLE = "different_lifestyle",
17
+ DIFFERENT_VALUES = "different_values",
18
+ NOT_GENUINE = "not_genuine",
19
+ TO_LONG_DISTANCE = "to_long_distance",
20
+ OTHER = "other",
21
+ }
@@ -9,6 +9,7 @@ export enum UserClaim {
9
9
  BANKID_VERIFIED = "bankid_verified",
10
10
  ONBOARDING_COMPLETED = "onboarding_completed",
11
11
  SA_UNLOCKED = "sa_unlocked",
12
+ PARTNER_PERMISSIONS = "partner_permissions",
12
13
  }
13
14
 
14
15
  export enum UserPlan {
@@ -12,6 +12,7 @@ export * from "./message.types";
12
12
  export * from "./request.types";
13
13
  export * from "./report.types";
14
14
  export * from "./response.types";
15
+ export * from "./partner.types";
15
16
  export * from "./pls.types";
16
17
  export * from "./stripe.types";
17
18
  export * from "./submission.types";
@@ -0,0 +1,13 @@
1
+ export type Partner = {
2
+ id: string;
3
+ email: string;
4
+ name: string;
5
+ companyName: string;
6
+ phone?: string;
7
+ active: boolean;
8
+ lastUpdated: string;
9
+ role: string;
10
+ created: string;
11
+ permissions: string[];
12
+ createdBy: string;
13
+ };
@@ -1,4 +1,5 @@
1
1
  import {
2
+ DislikeReason,
2
3
  FeedbackAgreement,
3
4
  FeedbackType,
4
5
  Gender,
@@ -73,7 +74,12 @@ export type GetMessagesRequest = {
73
74
  };
74
75
 
75
76
  // like
76
- export type CreateLikeRequest = { recipientId: string; type: LikeType };
77
+ export type CreateLikeRequest = {
78
+ recipientId: string;
79
+ type: LikeType;
80
+ dislikeReason?: DislikeReason;
81
+ dislikeComment?: string;
82
+ };
77
83
  export type GetLikesRequest = { limit: number; offset: string };
78
84
  export type HandleLikeSeenRequest = { userId: string };
79
85