heartraite 1.0.85 → 1.0.86
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.
- package/dist/enum/general.enum.d.ts +4 -0
- package/dist/enum/general.enum.js +8 -0
- package/dist/enum/index.d.ts +1 -0
- package/dist/enum/index.js +1 -0
- package/dist/types/request.types.d.ts +2 -1
- package/dist/types/user.types.d.ts +2 -1
- package/package.json +1 -1
- package/src/enum/general.enum.ts +4 -0
- package/src/enum/index.ts +1 -0
- package/src/types/request.types.ts +2 -0
- package/src/types/user.types.ts +2 -0
package/dist/enum/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from "./cloudfunction.enum";
|
|
|
4
4
|
export * from "./evaluation.enum";
|
|
5
5
|
export * from "./environment.enum";
|
|
6
6
|
export * from "./firestore.enum";
|
|
7
|
+
export * from "./general.enum";
|
|
7
8
|
export * from "./iap.enum";
|
|
8
9
|
export * from "./like.enum";
|
|
9
10
|
export * from "./report.enum";
|
package/dist/enum/index.js
CHANGED
|
@@ -20,6 +20,7 @@ __exportStar(require("./cloudfunction.enum"), exports);
|
|
|
20
20
|
__exportStar(require("./evaluation.enum"), exports);
|
|
21
21
|
__exportStar(require("./environment.enum"), exports);
|
|
22
22
|
__exportStar(require("./firestore.enum"), exports);
|
|
23
|
+
__exportStar(require("./general.enum"), exports);
|
|
23
24
|
__exportStar(require("./iap.enum"), exports);
|
|
24
25
|
__exportStar(require("./like.enum"), exports);
|
|
25
26
|
__exportStar(require("./report.enum"), exports);
|
|
@@ -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 } from "./user.types";
|
|
4
|
+
import { DatingPreferences, UserNotifications, UserProfile, UserSettings } from "./user.types";
|
|
5
5
|
export type RegisterUserRequest = {
|
|
6
6
|
userId: string;
|
|
7
7
|
email: string;
|
|
@@ -134,6 +134,7 @@ export type UpdateUserRequest = {
|
|
|
134
134
|
lng: number;
|
|
135
135
|
};
|
|
136
136
|
appVersion?: string;
|
|
137
|
+
settings?: DeepPartial<UserSettings>;
|
|
137
138
|
};
|
|
138
139
|
export type DeleteUserRequest = {
|
|
139
140
|
validationPhrase: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Gender, MatchmakingMode, NotificationSetting, UserLanguage } from "../enum";
|
|
1
|
+
import { Gender, MatchmakingMode, NotificationSetting, Theme, UserLanguage } from "../enum";
|
|
2
2
|
export type User = {
|
|
3
3
|
id: string;
|
|
4
4
|
email: string;
|
|
@@ -11,6 +11,7 @@ export type User = {
|
|
|
11
11
|
};
|
|
12
12
|
export type UserSettings = {
|
|
13
13
|
language: UserLanguage;
|
|
14
|
+
theme: Theme;
|
|
14
15
|
};
|
|
15
16
|
export type UserPermissions = {
|
|
16
17
|
registrationReferralAllowed: boolean;
|
package/package.json
CHANGED
package/src/enum/index.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from "./cloudfunction.enum";
|
|
|
4
4
|
export * from "./evaluation.enum";
|
|
5
5
|
export * from "./environment.enum";
|
|
6
6
|
export * from "./firestore.enum";
|
|
7
|
+
export * from "./general.enum";
|
|
7
8
|
export * from "./iap.enum";
|
|
8
9
|
export * from "./like.enum";
|
|
9
10
|
export * from "./report.enum";
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
DatingPreferences,
|
|
13
13
|
UserNotifications,
|
|
14
14
|
UserProfile,
|
|
15
|
+
UserSettings,
|
|
15
16
|
} from "./user.types";
|
|
16
17
|
|
|
17
18
|
// auth
|
|
@@ -138,6 +139,7 @@ export type UpdateUserRequest = {
|
|
|
138
139
|
>;
|
|
139
140
|
geoLocation?: { lat: number; lng: number };
|
|
140
141
|
appVersion?: string;
|
|
142
|
+
settings?: DeepPartial<UserSettings>;
|
|
141
143
|
};
|
|
142
144
|
export type DeleteUserRequest = {
|
|
143
145
|
validationPhrase: string;
|
package/src/types/user.types.ts
CHANGED
|
@@ -2,6 +2,7 @@ import {
|
|
|
2
2
|
Gender,
|
|
3
3
|
MatchmakingMode,
|
|
4
4
|
NotificationSetting,
|
|
5
|
+
Theme,
|
|
5
6
|
UserLanguage,
|
|
6
7
|
} from "../enum";
|
|
7
8
|
|
|
@@ -18,6 +19,7 @@ export type User = {
|
|
|
18
19
|
|
|
19
20
|
export type UserSettings = {
|
|
20
21
|
language: UserLanguage;
|
|
22
|
+
theme: Theme;
|
|
21
23
|
};
|
|
22
24
|
|
|
23
25
|
export type UserPermissions = {
|