@jealous-robot-dev/shared-types-responses 1.48.7 → 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.
- package/build/services/events/{customerhub.d.ts → customer.d.ts} +0 -0
- package/build/services/events/{customerhub.js → customer.js} +0 -0
- package/build/services/events/index.d.ts +1 -1
- package/build/services/events/index.js +1 -1
- package/build/services/main-data.d.ts +16 -7
- package/build/services/user-settings/index.d.ts +5 -6
- package/build/services/user-settings/index.js +5 -6
- package/build/services/user-settings/{user-notifications-settings.d.ts → notifications.d.ts} +18 -2
- package/build/services/user-settings/{event-settings.js → notifications.js} +0 -0
- package/build/services/user-settings/{user-payments.d.ts → payments.d.ts} +0 -0
- package/build/services/user-settings/{user-notifications-settings.js → payments.js} +0 -0
- package/build/services/user-settings/{user-personal-info.d.ts → personal-info.d.ts} +0 -0
- package/build/services/user-settings/{user-payments.js → personal-info.js} +0 -0
- package/build/services/user-settings/{user-privacy.d.ts → privacy.d.ts} +0 -0
- package/build/services/user-settings/{user-privacy.js → privacy.js} +0 -0
- package/build/services/user-settings/{user-security.d.ts → security.d.ts} +0 -0
- package/build/services/user-settings/{user-personal-info.js → security.js} +0 -0
- package/package.json +3 -3
- package/build/services/user-settings/event-settings.d.ts +0 -23
- package/build/services/user-settings/user-security.js +0 -2
File without changes
|
File without changes
|
@@ -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,
|
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
|
-
|
30
|
-
|
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
|
-
|
35
|
+
expiresAt: string;
|
37
36
|
};
|
38
|
-
|
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 './
|
5
|
-
export * from './
|
6
|
-
export * from './
|
7
|
-
export * from './
|
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("./
|
17
|
-
__exportStar(require("./
|
18
|
-
__exportStar(require("./
|
19
|
-
__exportStar(require("./
|
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);
|
package/build/services/user-settings/{user-notifications-settings.d.ts → notifications.d.ts}
RENAMED
@@ -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
|
-
|
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
|
}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@jealous-robot-dev/shared-types-responses",
|
3
|
-
"version": "1.48.
|
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.
|
28
|
-
"@jealous-robot-dev/shared-phrases": "^1.13.
|
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
|
-
}
|