heartraite 1.0.111 → 1.0.112

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, 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
  };
@@ -145,6 +145,7 @@ export type UpdateUserRequest = {
145
145
  appVersion?: string;
146
146
  settings?: DeepPartial<UserSettings>;
147
147
  consent?: DeepPartial<UserConsents>;
148
+ device?: DeepPartial<UserDevice>;
148
149
  };
149
150
  export type DeleteUserRequest = {
150
151
  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.112",
4
4
  "description": "Heartraite npm package for common functionality",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -12,6 +12,7 @@ import { Answer, Demographics } from "./submission.types";
12
12
  import {
13
13
  DatingPreferences,
14
14
  UserConsents,
15
+ UserDevice,
15
16
  UserNotifications,
16
17
  UserProfile,
17
18
  UserSettings,
@@ -156,6 +157,7 @@ export type UpdateUserRequest = {
156
157
  appVersion?: string;
157
158
  settings?: DeepPartial<UserSettings>;
158
159
  consent?: DeepPartial<UserConsents>;
160
+ device?: DeepPartial<UserDevice>;
159
161
  };
160
162
  export type DeleteUserRequest = {
161
163
  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;