heartraite 1.0.84 → 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.
@@ -0,0 +1,4 @@
1
+ export declare enum Theme {
2
+ LIGHT = "light",
3
+ DARK = "dark"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Theme = void 0;
4
+ var Theme;
5
+ (function (Theme) {
6
+ Theme["LIGHT"] = "light";
7
+ Theme["DARK"] = "dark";
8
+ })(Theme || (exports.Theme = Theme = {}));
@@ -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";
@@ -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;
@@ -127,12 +127,14 @@ export type UpdateUserRequest = {
127
127
  preferences?: DeepPartial<DatingPreferences>;
128
128
  notifications?: DeepPartial<UserNotifications & {
129
129
  expoPushToken?: Partial<string>;
130
+ platform?: string;
130
131
  }>;
131
132
  geoLocation?: {
132
133
  lat: number;
133
134
  lng: number;
134
135
  };
135
136
  appVersion?: string;
137
+ settings?: DeepPartial<UserSettings>;
136
138
  };
137
139
  export type DeleteUserRequest = {
138
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heartraite",
3
- "version": "1.0.84",
3
+ "version": "1.0.86",
4
4
  "description": "Heartraite npm package for common functionality",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1,4 @@
1
+ export enum Theme {
2
+ LIGHT = "light",
3
+ DARK = "dark",
4
+ }
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
@@ -134,10 +135,11 @@ export type UpdateUserRequest = {
134
135
  profile?: DeepPartial<UserProfile>;
135
136
  preferences?: DeepPartial<DatingPreferences>;
136
137
  notifications?: DeepPartial<
137
- UserNotifications & { expoPushToken?: Partial<string> }
138
+ UserNotifications & { expoPushToken?: Partial<string>; platform?: string }
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;
@@ -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 = {