heartraite 1.0.111 → 1.0.113

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 = {}));
@@ -1,7 +1,7 @@
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
- import { DatingPreferences, UserConsents, UserNotifications, UserProfile, UserSettings } from "./user.types";
4
+ import { DatingPreferences, UserConsents, UserDevice, UserNotifications, UserProfile, UserSettings } from "./user.types";
5
5
  export type SyncAffiliateRequest = {
6
6
  affiliateCode: string;
7
7
  };
@@ -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;
@@ -145,6 +147,7 @@ export type UpdateUserRequest = {
145
147
  appVersion?: string;
146
148
  settings?: DeepPartial<UserSettings>;
147
149
  consent?: DeepPartial<UserConsents>;
150
+ device?: DeepPartial<UserDevice>;
148
151
  };
149
152
  export type DeleteUserRequest = {
150
153
  validationPhrase: string;
@@ -10,6 +10,12 @@ export type User = {
10
10
  settings: UserSettings;
11
11
  consent: UserConsents;
12
12
  };
13
+ export type UserDevice = {
14
+ deviceType: string | null;
15
+ model: string | null;
16
+ osName: string | null;
17
+ osVersion: string | null;
18
+ };
13
19
  export type UserConsents = {
14
20
  am: Consent;
15
21
  ca: Consent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heartraite",
3
- "version": "1.0.111",
3
+ "version": "1.0.113",
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
+ }
@@ -1,4 +1,5 @@
1
1
  import {
2
+ DislikeReason,
2
3
  FeedbackAgreement,
3
4
  FeedbackType,
4
5
  Gender,
@@ -12,6 +13,7 @@ import { Answer, Demographics } from "./submission.types";
12
13
  import {
13
14
  DatingPreferences,
14
15
  UserConsents,
16
+ UserDevice,
15
17
  UserNotifications,
16
18
  UserProfile,
17
19
  UserSettings,
@@ -72,7 +74,12 @@ export type GetMessagesRequest = {
72
74
  };
73
75
 
74
76
  // like
75
- export type CreateLikeRequest = { recipientId: string; type: LikeType };
77
+ export type CreateLikeRequest = {
78
+ recipientId: string;
79
+ type: LikeType;
80
+ dislikeReason?: DislikeReason;
81
+ dislikeComment?: string;
82
+ };
76
83
  export type GetLikesRequest = { limit: number; offset: string };
77
84
  export type HandleLikeSeenRequest = { userId: string };
78
85
 
@@ -156,6 +163,7 @@ export type UpdateUserRequest = {
156
163
  appVersion?: string;
157
164
  settings?: DeepPartial<UserSettings>;
158
165
  consent?: DeepPartial<UserConsents>;
166
+ device?: DeepPartial<UserDevice>;
159
167
  };
160
168
  export type DeleteUserRequest = {
161
169
  validationPhrase: string;
@@ -18,6 +18,13 @@ export type User = {
18
18
  consent: UserConsents;
19
19
  };
20
20
 
21
+ export type UserDevice = {
22
+ deviceType: string | null;
23
+ model: string | null;
24
+ osName: string | null;
25
+ osVersion: string | null;
26
+ };
27
+
21
28
  export type UserConsents = {
22
29
  am: Consent;
23
30
  ca: Consent;