@jealous-robot-dev/shared-types-responses 1.48.6 → 1.48.8

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.
@@ -31,6 +31,7 @@ export interface ViewEventHostData {
31
31
  website?: string;
32
32
  reviews?: number;
33
33
  raiting?: number;
34
+ timezone?: number;
34
35
  linkedin?: string;
35
36
  firstname?: string;
36
37
  lastname?: string;
@@ -2,10 +2,10 @@ export * from './pic';
2
2
  export * from './host';
3
3
  export * from './event';
4
4
  export * from './events';
5
+ export * from './customer';
5
6
  export * from './shorcuts';
6
7
  export * from './tag-search';
7
8
  export * from './seance-join';
8
- export * from './customerhub';
9
9
  export * from './urgent-event';
10
10
  export * from './event-search';
11
11
  export * from './host-an-event';
@@ -14,10 +14,10 @@ __exportStar(require("./pic"), exports);
14
14
  __exportStar(require("./host"), exports);
15
15
  __exportStar(require("./event"), exports);
16
16
  __exportStar(require("./events"), exports);
17
+ __exportStar(require("./customer"), exports);
17
18
  __exportStar(require("./shorcuts"), exports);
18
19
  __exportStar(require("./tag-search"), exports);
19
20
  __exportStar(require("./seance-join"), exports);
20
- __exportStar(require("./customerhub"), exports);
21
21
  __exportStar(require("./urgent-event"), exports);
22
22
  __exportStar(require("./event-search"), exports);
23
23
  __exportStar(require("./host-an-event"), exports);
@@ -1,4 +1,4 @@
1
- import { UITHEME, TextDirection, DropHRUserAgents, AuthenticationProviders, Currency, Locale, DropWebEnv, Pages } from '@jealous-robot-dev/drophr-common';
1
+ import { UITHEME, TextDirection, DropHRUserAgents, AuthenticationProviders, Currency, Locale, ENV, AppPages, DialogPages, SearchCategories, InfoPages, NotFoundPages, SettingsCategories, RegistrationCategories, AnaliticalCategories, CustomerCategories } from '@jealous-robot-dev/drophr-common';
2
2
  import { MainPhrases } from '@jealous-robot-dev/shared-phrases';
3
3
  import { QueryResponse } from './common';
4
4
  import { UrgentEvent } from '..';
@@ -10,7 +10,6 @@ export interface MainUserData {
10
10
  lastname: string;
11
11
  ppu: string;
12
12
  is_admin: boolean;
13
- DAU_report?: boolean;
14
13
  member_since: number;
15
14
  is_verified: boolean;
16
15
  unread_messages_count: number;
@@ -26,19 +25,29 @@ export interface API {
26
25
  }
27
26
  export interface CommonData {
28
27
  currentUser: MainUserData | null;
29
- no_consent?: boolean;
30
- device_id: string | null;
28
+ noConsent?: boolean;
29
+ deviceId: string | null;
31
30
  agent: DropHRUserAgents;
32
31
  country: string;
33
32
  region: string;
34
33
  session: {
35
34
  token: string;
36
- expires_at: string;
35
+ expiresAt: string;
37
36
  };
38
- page: Pages;
39
- dropWebEnv: DropWebEnv;
37
+ env: ENV;
40
38
  direction: TextDirection;
41
39
  API: API;
40
+ page: {
41
+ id: AppPages;
42
+ infoPageId?: InfoPages;
43
+ dialogPageId?: DialogPages;
44
+ notFoundPageId?: NotFoundPages;
45
+ searchCategoryId?: SearchCategories;
46
+ customerCategoryId?: CustomerCategories;
47
+ settingsCategoryId?: SettingsCategories;
48
+ analitycalCategoryId?: AnaliticalCategories;
49
+ registrationCategoryId?: RegistrationCategories;
50
+ };
42
51
  preferences: {
43
52
  locale: Locale;
44
53
  currency: Currency;
@@ -1,7 +1,6 @@
1
- export * from './user-notifications-settings';
2
- export * from './user-personal-info';
3
1
  export * from './deactivate-account';
4
- export * from './event-settings';
5
- export * from './user-security';
6
- export * from './user-payments';
7
- export * from './user-privacy';
2
+ export * from './notifications';
3
+ export * from './personal-info';
4
+ export * from './security';
5
+ export * from './payments';
6
+ export * from './privacy';
@@ -10,10 +10,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
10
  for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
- __exportStar(require("./user-notifications-settings"), exports);
14
- __exportStar(require("./user-personal-info"), exports);
15
13
  __exportStar(require("./deactivate-account"), exports);
16
- __exportStar(require("./event-settings"), exports);
17
- __exportStar(require("./user-security"), exports);
18
- __exportStar(require("./user-payments"), exports);
19
- __exportStar(require("./user-privacy"), exports);
14
+ __exportStar(require("./notifications"), exports);
15
+ __exportStar(require("./personal-info"), exports);
16
+ __exportStar(require("./security"), exports);
17
+ __exportStar(require("./payments"), exports);
18
+ __exportStar(require("./privacy"), exports);
@@ -1,4 +1,4 @@
1
- import { Channels, UserNotificationTopicID, UserNotificationCategories } from '@jealous-robot-dev/drophr-common';
1
+ import { Channels, UserNotificationTopicID, UserNotificationCategories, UserCategory } from '@jealous-robot-dev/drophr-common';
2
2
  import { NotificationSettingsPhrases } from '@jealous-robot-dev/shared-phrases';
3
3
  import { QueryResponse } from '../common';
4
4
  export interface UserNotificationsDataPreferences {
@@ -6,13 +6,29 @@ export interface UserNotificationsDataPreferences {
6
6
  enabled: boolean;
7
7
  canDisable: boolean;
8
8
  }
9
+ export interface SchduledReminder {
10
+ enabled: boolean;
11
+ interval: number;
12
+ }
9
13
  export interface UserNotificationDataSetting {
10
14
  id: UserNotificationTopicID;
11
15
  category: UserNotificationCategories;
12
16
  preferences: UserNotificationsDataPreferences[];
13
17
  }
14
18
  export interface UserNotificationData {
15
- settings: UserNotificationDataSetting[];
19
+ preferences: UserNotificationDataSetting[];
20
+ reminders: {
21
+ [UserCategory.CUSTOMER]: {
22
+ updatedEventNotifs: boolean;
23
+ upcomingEvents: SchduledReminder;
24
+ };
25
+ [UserCategory.CREATOR]: {
26
+ upcomingEvents: SchduledReminder;
27
+ };
28
+ common: {
29
+ urgentEventReminder: boolean;
30
+ };
31
+ };
16
32
  }
17
33
  export interface UserNotificationResponse extends QueryResponse<UserNotificationData, NotificationSettingsPhrases> {
18
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jealous-robot-dev/shared-types-responses",
3
- "version": "1.48.6",
3
+ "version": "1.48.8",
4
4
  "description": "DropHR common types of API responses",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  "typescript": "^3.8.3"
25
25
  },
26
26
  "dependencies": {
27
- "@jealous-robot-dev/drophr-common": "^1.14.1",
28
- "@jealous-robot-dev/shared-phrases": "^1.13.8"
27
+ "@jealous-robot-dev/drophr-common": "^1.14.2",
28
+ "@jealous-robot-dev/shared-phrases": "^1.13.9"
29
29
  }
30
30
  }
@@ -1,23 +0,0 @@
1
- import { UserEventSettingsPhrases } from '@jealous-robot-dev/shared-phrases';
2
- import { UserCategory } from '@jealous-robot-dev/drophr-common';
3
- import { QueryResponse } from '../common';
4
- export interface UserEventSettingsData {
5
- [UserCategory.CUSTOMER]: {
6
- updatedEventNotifs: boolean;
7
- upcomingEvents: {
8
- enabled: boolean;
9
- interval: number;
10
- };
11
- };
12
- [UserCategory.CREATOR]: {
13
- upcomingEvents: {
14
- enabled: boolean;
15
- interval: number;
16
- };
17
- };
18
- common: {
19
- urgentEventReminder: boolean;
20
- };
21
- }
22
- export interface UserEventSettingsResponse extends QueryResponse<UserEventSettingsData, UserEventSettingsPhrases> {
23
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });