heartraite 1.0.91 → 1.0.93
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,7 +1,7 @@
|
|
|
1
1
|
import { FeedbackAgreement, 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, UserNotifications, UserProfile, UserSettings } from "./user.types";
|
|
4
|
+
import { DatingPreferences, UserConsents, UserNotifications, UserProfile, UserSettings } from "./user.types";
|
|
5
5
|
export type RegisterUserRequest = {
|
|
6
6
|
userId: string;
|
|
7
7
|
email: string;
|
|
@@ -135,6 +135,7 @@ export type UpdateUserRequest = {
|
|
|
135
135
|
};
|
|
136
136
|
appVersion?: string;
|
|
137
137
|
settings?: DeepPartial<UserSettings>;
|
|
138
|
+
consent?: DeepPartial<UserConsents>;
|
|
138
139
|
};
|
|
139
140
|
export type DeleteUserRequest = {
|
|
140
141
|
validationPhrase: string;
|
|
@@ -8,6 +8,13 @@ export type User = {
|
|
|
8
8
|
preferences: DatingPreferences;
|
|
9
9
|
notifications: UserNotifications;
|
|
10
10
|
settings: UserSettings;
|
|
11
|
+
consent: UserConsents;
|
|
12
|
+
};
|
|
13
|
+
export type UserConsents = {
|
|
14
|
+
am: Consent;
|
|
15
|
+
};
|
|
16
|
+
export type Consent = {
|
|
17
|
+
given: boolean;
|
|
11
18
|
};
|
|
12
19
|
export type UserSettings = {
|
|
13
20
|
language: UserLanguage;
|
package/package.json
CHANGED
|
@@ -10,6 +10,7 @@ import { DeepPartial } from "./helper.types";
|
|
|
10
10
|
import { Answer, Demographics } from "./submission.types";
|
|
11
11
|
import {
|
|
12
12
|
DatingPreferences,
|
|
13
|
+
UserConsents,
|
|
13
14
|
UserNotifications,
|
|
14
15
|
UserProfile,
|
|
15
16
|
UserSettings,
|
|
@@ -140,6 +141,7 @@ export type UpdateUserRequest = {
|
|
|
140
141
|
geoLocation?: { lat: number; lng: number };
|
|
141
142
|
appVersion?: string;
|
|
142
143
|
settings?: DeepPartial<UserSettings>;
|
|
144
|
+
consent?: DeepPartial<UserConsents>;
|
|
143
145
|
};
|
|
144
146
|
export type DeleteUserRequest = {
|
|
145
147
|
validationPhrase: string;
|
package/src/types/user.types.ts
CHANGED
|
@@ -15,6 +15,16 @@ export type User = {
|
|
|
15
15
|
preferences: DatingPreferences;
|
|
16
16
|
notifications: UserNotifications;
|
|
17
17
|
settings: UserSettings;
|
|
18
|
+
consent: UserConsents;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export type UserConsents = {
|
|
22
|
+
am: Consent;
|
|
23
|
+
// add others as needed
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export type Consent = {
|
|
27
|
+
given: boolean;
|
|
18
28
|
};
|
|
19
29
|
|
|
20
30
|
export type UserSettings = {
|