heartraite 1.0.158 → 1.0.160
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,4 +1,4 @@
|
|
|
1
|
-
import { DislikeReason, FeedbackAgreement, FeedbackType, Gender, LikeType, ProviderType, ReportReason, UserDeletionReason } from "../enum";
|
|
1
|
+
import { DislikeReason, FeedbackAgreement, FeedbackType, Gender, LikeType, ProviderType, ReportReason, Theme, 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";
|
|
@@ -6,11 +6,11 @@ export type SyncAffiliateRequest = {
|
|
|
6
6
|
affiliateCode: string;
|
|
7
7
|
};
|
|
8
8
|
export type RegisterUserRequest = {
|
|
9
|
-
userId: string;
|
|
10
9
|
email: string;
|
|
11
10
|
provider: ProviderType;
|
|
12
11
|
created: string;
|
|
13
12
|
referrerId?: string;
|
|
13
|
+
theme: Theme;
|
|
14
14
|
};
|
|
15
15
|
export type GetCARequest = undefined;
|
|
16
16
|
export type SubmitAnswerRequest = {
|
|
@@ -152,10 +152,6 @@ export type RegisterOnboardingRequest = {
|
|
|
152
152
|
images: string[];
|
|
153
153
|
interestedIn: Gender[];
|
|
154
154
|
gender: Gender;
|
|
155
|
-
coordinates?: {
|
|
156
|
-
lat: number;
|
|
157
|
-
lng: number;
|
|
158
|
-
};
|
|
159
155
|
};
|
|
160
156
|
export type GetUserRequest = undefined;
|
|
161
157
|
export type UpdateUserRequest = {
|
|
@@ -34,16 +34,16 @@ export type UserPermissions = {
|
|
|
34
34
|
export type ProfileInput = Record<string, string>;
|
|
35
35
|
export type UserProfile = {
|
|
36
36
|
intro: string;
|
|
37
|
-
firstName
|
|
38
|
-
state
|
|
39
|
-
birth
|
|
40
|
-
age
|
|
41
|
-
gender
|
|
42
|
-
zodiacSign
|
|
37
|
+
firstName?: string;
|
|
38
|
+
state?: string;
|
|
39
|
+
birth?: string;
|
|
40
|
+
age?: number;
|
|
41
|
+
gender?: Gender;
|
|
42
|
+
zodiacSign?: string;
|
|
43
43
|
images: string[];
|
|
44
|
-
thumbnail
|
|
45
|
-
thumbnailBlurred
|
|
46
|
-
image
|
|
44
|
+
thumbnail?: string;
|
|
45
|
+
thumbnailBlurred?: string;
|
|
46
|
+
image?: string;
|
|
47
47
|
aiSummary?: string;
|
|
48
48
|
attachedSummary: boolean;
|
|
49
49
|
profileInput: ProfileInput;
|
|
@@ -58,8 +58,8 @@ export type UserNotifications = {
|
|
|
58
58
|
};
|
|
59
59
|
export type DatingPreferences = {
|
|
60
60
|
mode: MatchmakingMode;
|
|
61
|
-
minAge
|
|
62
|
-
maxAge
|
|
61
|
+
minAge?: number;
|
|
62
|
+
maxAge?: number;
|
|
63
63
|
interestedIn: Gender[];
|
|
64
64
|
distanceRadius: number;
|
|
65
65
|
};
|
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
LikeType,
|
|
7
7
|
ProviderType,
|
|
8
8
|
ReportReason,
|
|
9
|
+
Theme,
|
|
9
10
|
UserDeletionReason,
|
|
10
11
|
} from "../enum";
|
|
11
12
|
import { DeepPartial } from "./helper.types";
|
|
@@ -26,11 +27,11 @@ export type SyncAffiliateRequest = {
|
|
|
26
27
|
|
|
27
28
|
// auth
|
|
28
29
|
export type RegisterUserRequest = {
|
|
29
|
-
userId: string;
|
|
30
30
|
email: string;
|
|
31
31
|
provider: ProviderType;
|
|
32
32
|
created: string;
|
|
33
33
|
referrerId?: string;
|
|
34
|
+
theme: Theme;
|
|
34
35
|
};
|
|
35
36
|
|
|
36
37
|
// ca
|
|
@@ -174,10 +175,6 @@ export type RegisterOnboardingRequest = {
|
|
|
174
175
|
images: string[];
|
|
175
176
|
interestedIn: Gender[];
|
|
176
177
|
gender: Gender;
|
|
177
|
-
coordinates?: {
|
|
178
|
-
lat: number;
|
|
179
|
-
lng: number;
|
|
180
|
-
};
|
|
181
178
|
};
|
|
182
179
|
export type GetUserRequest = undefined;
|
|
183
180
|
export type UpdateUserRequest = {
|
package/src/types/user.types.ts
CHANGED
|
@@ -49,16 +49,16 @@ export type ProfileInput = Record<string, string>;
|
|
|
49
49
|
|
|
50
50
|
export type UserProfile = {
|
|
51
51
|
intro: string;
|
|
52
|
-
firstName
|
|
53
|
-
state
|
|
54
|
-
birth
|
|
55
|
-
age
|
|
56
|
-
gender
|
|
57
|
-
zodiacSign
|
|
52
|
+
firstName?: string;
|
|
53
|
+
state?: string;
|
|
54
|
+
birth?: string;
|
|
55
|
+
age?: number;
|
|
56
|
+
gender?: Gender;
|
|
57
|
+
zodiacSign?: string;
|
|
58
58
|
images: string[];
|
|
59
|
-
thumbnail
|
|
60
|
-
thumbnailBlurred
|
|
61
|
-
image
|
|
59
|
+
thumbnail?: string;
|
|
60
|
+
thumbnailBlurred?: string;
|
|
61
|
+
image?: string;
|
|
62
62
|
aiSummary?: string;
|
|
63
63
|
attachedSummary: boolean;
|
|
64
64
|
profileInput: ProfileInput;
|
|
@@ -76,8 +76,8 @@ export type UserNotifications = {
|
|
|
76
76
|
|
|
77
77
|
export type DatingPreferences = {
|
|
78
78
|
mode: MatchmakingMode;
|
|
79
|
-
minAge
|
|
80
|
-
maxAge
|
|
79
|
+
minAge?: number;
|
|
80
|
+
maxAge?: number;
|
|
81
81
|
interestedIn: Gender[];
|
|
82
82
|
distanceRadius: number;
|
|
83
83
|
};
|